visual-studio-2010 - 如何在 Visual C# 项目类型节点之外创建项目模板节点?

标签 visual-studio-2010 sdk vsix

如果我这样做,则使用 VSIX 项目

<VSTemplate Include="ProjectTemplate1.vstemplate">

    <OutputSubPath>Sample Test Project</OutputSubPath>

</VSTemplate>

地点是
\bin\Debug\ProjectTemplates\CSharp\Sample Test Project\1033\ProjectTemplate1.zip

这将在 VS 安装的模板中的 Visual C# 模板中创建一个项目模板。但是,我不想将 Visual C# 作为我的项目类型节点。它应该在 Visual C# 项目类型节点之外。

我怎样才能做到这一点?我需要进行哪些更改以及如何更改?请帮忙

最佳答案

根据 http://blogs.msdn.com/b/visualstudio/archive/2010/03/04/creating-and-sharing-project-item-templates.aspx ,

The “Type” attribute in the .vstemplate file root node. Project templates go under “ProjectTemplates”. Item templates go under “ItemTemplates”.

The “Language” part of the path (“CSharp” in our example) is determined by the node in the .vstemplate file.


因此,您似乎需要从不同类型的项目创建项目模板,或者在您正在创建的项目中编辑您的项目模板类型。

关于visual-studio-2010 - 如何在 Visual C# 项目类型节点之外创建项目模板节点?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11137170/

相关文章:

visual-studio-2010 - Windows 7 上的 glew 和 Visual Studio 链接器错误

c++ - Qt 5.3 和 Win SDK 7.1 : Cannot open include file ammintrin. h

c++ - 警告 C4018 : '<' : signed/unsigned mismatch

visual-studio - 找不到合适的 SDK 来定位

iPhone SDK :Is it possible to use an UISwitch to enable and disable PNS(Push Notification Service)?

c++ - POS 终端应用程序开发 - SDK、编程语言、模式、IDE

c++ - Boost 1.45 - 1.49 在使用 Visual Studio 2010 时与 MySql C++ Connector 1.1 中断

visual-studio - 在 Visual Studio 扩展中,获取停止调试器的函数的行范围

c# - 我应该为 VS 2010 创建什么样的插件/扩展?

c# - 访问 vsix 项目中当前打开的解决方案