为什么部署 VSIX 时没有项目项?
我们有一个 VS2010 Beta 2 DSL 项目,我们可以在我们的开发机器上构建、部署和测试,一切都很好,即当我们转到“添加新项目”时,我们可以选择我们的 DSL
。尝试他们可以看到关联项目项的唯一方法是,如果他们在自己的计算机上构建 DSL 项目,他们不需要 F5,这只是一个简单的构建解决方案,然后瞧,他们可以看到它。
这是错误还是用户错误?
We have a VS2010 Beta 2 DSL Project , We can build, deploy and test on our Development machines and all is well i.e When we go to 'Add New Item' we can select our DSL
When it comes to giving the VSIX to someone else to try the ONLY way that they can see the associated Project Item is if they build the DSL Project on their machine, they do not need to F5, it is just a simple Build Solution and then voila they can see it.
Is this a bug or user error?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可能想要将您的位更新到 RC 版本,该版本现已在 VS 可视化 &建模 SDK,位于 http://www.microsoft.com/downloads/details.aspx?FamilyID=cd443b01-d657-4f8b-b5b8-29f1e3e2c424&displaylang=en
You might want to update your bits to the RC version, which are now shipping in the VS Visualization & Modeling SDK at http://www.microsoft.com/downloads/details.aspx?FamilyID=cd443b01-d657-4f8b-b5b8-29f1e3e2c424&displaylang=en
这显然是一个已知的错误,
找到了解决方法
我通过在 csproj 中添加一些 guid {82b43b9b-a64c-4715-b499-d71e9ca2bd60};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
并手动编辑 vsixmanifest 以添加
ItemTemplates
I 创建了一个名为 ItemTemplates 的文件夹,然后将生成的项目项 Zip 添加到该文件夹中,然后将 Zip 设置为内容并将 IncludeInVSIX 属性更改为“True”
不漂亮,但它可以工作
This is apparently a known bug
I have found a workaround by adding some guids
{82b43b9b-a64c-4715-b499-d71e9ca2bd60};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
into the csproj and manually editing the vsixmanifest to add
ItemTemplates
I created a folder called ItemTemplates and then added the generated project item Zip into the folder , I then set the Zip as Content and changed the IncludeInVSIX property to 'True'
Not pretty but it works