[英]How to create Visual Studio 2017 multi template VSIX project?
I'm trying to create an VSIX extension with Visual Studio 2017. My idea is that this extension can contain more than one template inside, It means that with one vsix installer, I want to install more than one template in Visual Studio (something like Prism Template pack). 我正在尝试使用Visual Studio 2017创建VSIX扩展。我的想法是,此扩展可以在内部包含多个模板,这意味着通过一个vsix安装程序,我想在Visual Studio中安装多个模板(类似棱镜模板包)。
I have the next scenario: 我有下一个场景:
Two C# template project and one VSIX Project. 两个C#模板项目和一个VSIX项目。
In the asset section of VSIX project, I'm referencing the output of my two template project: 在VSIX项目的资产部分,我引用了两个模板项目的输出:
But when I search them in Visual Studio for looking if they are installed, there is only one of them: 但是,当我在Visual Studio中搜索它们以查看它们是否已安装时,只有其中之一:
Both template project have same category, so it suppose they have to be in same folder. 两个模板项目都具有相同的类别,因此假定它们必须位于同一文件夹中。
Is there any configuration or something I'm missing to achieve the behavior I described? 是否有任何配置或某些我无法实现的功能?
Thanks in advance 提前致谢
I finally did make it work. 我终于做到了。 It was my mistake: 这是我的错误:
The template project were on different folder, but the output filename was the same, so, when the VSIX project was compiled overwrite the file and only showed one of them. 模板项目位于不同的文件夹中,但是输出文件名相同,因此,在编译VSIX项目时,将覆盖文件并仅显示其中之一。
My solution was giving one unique name for each template project and that's all. 我的解决方案是为每个模板项目提供一个唯一的名称,仅此而已。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.