c# - 具有构建操作的 VSTemplate

标签 c# visual-studio visual-studio-2008

如何创建 VSTemplate 以便它自动将构建操作设置为“内容”而不是默认值“无”?

最佳答案

根据这个post ,而不是指定 SubType,您应该将 ItemType 属性指定为“Content”。

<ProjectItem ItemType="Content" ... > ... </ProjectItem>

我试过了,很有效! (是的,它不是很直观)

关于c# - 具有构建操作的 VSTemplate,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/797124/

相关文章:

visual-studio - 转储文件中有什么?

visual-studio-2008 - Visual Studio 2008 解决方案(SSRS 报告)到 Visual Studio 2013

c# - 如何使用 XmlSerializer 将自定义值设置为 xml header 中的 xmlns

c# - 如何将参数传递给 MVC 中的 GenericController 构造函数?

c++ - 调试英特尔的 TBB 容器

c++ - 是什么导致 VS2013 错误 LNK2005 : __xi_a already defined in MSVCRT. lib(cinitexe.obj)?

c# - 如何使用 Visual Studio 2008 部署 asp.net 应用程序

c++ - 没有 .h 的 header 的 Visual Studio 智能感知

c# - 我可以在框架方法上使用 SuppressMessage 吗?

c# - 在 MVC 的 ViewModel 中仅使用 Model 的一些属性