我正在尝试创建一个多项目模板,并且效果很好。项目已创建。对于此解决方案,项目应添加一些 3:e 方 dll 的引用,以及其他一些 .txt 和 .xml 文件。
我有这样的 .vstemplate:
<VSTemplate Version="3.0.0" Type="ProjectGroup" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005">
<TemplateData>
<Name>AppFabric Services Solution Template</Name>
<Description></Description>
<ProjectType>CSharp</ProjectType>
<Icon></Icon>
<RequiredFrameworkVersion>4.5</RequiredFrameworkVersion>
</TemplateData>
<TemplateContent>
<ProjectCollection>
<SolutionFolder Name="Domain">
<ProjectTemplateLink ProjectName="$safeprojectname$.Domain.Application">
Domain\Application\Application.vstemplate
</ProjectTemplateLink>
<ProjectTemplateLink ProjectName="$safeprojectname$.Domain.Core">
Domain\Core\Core.vstemplate
</ProjectTemplateLink>
</SolutionFolder>
</ProjectCollection>
</TemplateContent>
</VSTemplate>
想要这样的东西
<VSTemplate Version="3.0.0" Type="ProjectGroup" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005">
<TemplateData>
<Name>AppFabric Services Solution Template</Name>
<Description></Description>
<ProjectType>CSharp</ProjectType>
<Icon></Icon>
<RequiredFrameworkVersion>4.5</RequiredFrameworkVersion>
</TemplateData>
<TemplateContent>
<ProjectCollection>
<SolutionFolder Name="_Library">
<ProjectItem>THIRDPARTY.dll</ProjectItem>
</SolutionFolder>
<SolutionFolder Name="_SolutionItems">
<ProjectItem>README.TXT</ProjectItem>
</SolutionFolder>
<SolutionFolder Name="Domain">
<ProjectTemplateLink ProjectName="$safeprojectname$.Domain.Application">
Domain\Application\Application.vstemplate
</ProjectTemplateLink>
<ProjectTemplateLink ProjectName="$safeprojectname$.Domain.Core">
Domain\Core\Core.vstemplate
</ProjectTemplateLink>
</SolutionFolder>
</ProjectCollection>
</TemplateContent>
</VSTemplate>
有没有做我想做的事?
问候/马格努斯