gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 08:55:57 25 4
gpt4 key购买 nike

如果我这样做,则使用 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com