解决方案:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
<VSTemplate Version="2.0.0" Type="ProjectGroup" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005"> <TemplateData> <Name>DD373.Demo</Name> <Description>a DD373 Demo 16</Description> <Icon>__TemplateIcon.jpg</Icon> <ProjectType>CSharp</ProjectType> </TemplateData> <TemplateContent> <ProjectCollection> <ProjectTemplateLink ProjectName="$projectname$.Access" CopyParameters="true">DD373.Demo.Access\MyTemplate.vstemplate</ProjectTemplateLink> <ProjectTemplateLink ProjectName="$projectname$.Entity" CopyParameters="true">DD373.Demo.Entity\MyTemplate.vstemplate</ProjectTemplateLink> </ProjectCollection> </TemplateContent> </VSTemplate> |
其中一个解决方案:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
<VSTemplate Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Project"> <TemplateData> <Name>DD373.Demo.Access</Name> <Description>Access</Description> <ProjectType>CSharp</ProjectType> <ProjectSubType> </ProjectSubType> <SortOrder>1000</SortOrder> <CreateNewFolder>true</CreateNewFolder> <DefaultName>DD373.Demo.Access</DefaultName> <ProvideDefaultName>true</ProvideDefaultName> <LocationField>Enabled</LocationField> <EnableLocationBrowseButton>true</EnableLocationBrowseButton> <Icon>__TemplateIcon.jpg</Icon> <PreviewImage>__PreviewImage.jpg</PreviewImage> </TemplateData> <TemplateContent> <Project TargetFileName="DD373.Demo.Access.csproj" File="DD373.Demo.Access.csproj" ReplaceParameters="true"> <Folder Name="Properties" TargetFolderName="Properties"> <ProjectItem ReplaceParameters="true" TargetFileName="AssemblyInfo.cs">AssemblyInfo.cs</ProjectItem> </Folder> <ProjectItem ReplaceParameters="true" TargetFileName="User.cs">User.cs</ProjectItem> </Project> </TemplateContent> </VSTemplate> |