我正在使用Visual Studio项目模板,但在我的解决方案中,我有6个项目,并且我想将项目模板包含在所有项目中。品种代码项目,这是一个:在Visual Studio模板中更改项目文件夹路径
<VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Item">
<TemplateData>
<DefaultName>WebAPI.cs</DefaultName>
<Name>WebAPI</Name>
<Description><No description available></Description>
<ProjectType>CSharp</ProjectType>
<SortOrder>10</SortOrder>
<Icon>__TemplateIcon.png</Icon>
</TemplateData>
<TemplateContent>
<Folder Name="Base" TargetFolderName="Base">
<Folder Name="Interface" TargetFolderName="Interface">
<ProjectItem ReplaceParameters="true" TargetFileName="I$fileinputname$.cs">IPesquisarEstruturaSIIMN.cs</ProjectItem>
</Folder>
<ProjectItem ReplaceParameters="true" TargetFileName="$fileinputname$N.cs">PesquisarEstruturaSIIMN.cs</ProjectItem>
</Folder>
</TemplateContent>
</VSTemplate>
我的问题是我的问题是我如何改变我的项目模板的项目目标是什么?
[这个MSDN页面(https://msdn.microsoft.com/en-us/library/vstudio/y3kkate1%28v=vs.120%29.aspx)文件VS如何搜索自定义模板。您可以使用文件+导出模板进行练习。 –
我有一个选项,导出项目和模板..并在这两个选项我没有指示,包括项目在其他项目.. –