为什么部署 VSIX 时没有项目项?

发布于 2024-08-12 02:11:15 字数 199 浏览 4 评论 0原文

我们有一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

潜移默化 2024-08-19 02:11:15

这显然是一个已知的错误,

找到了解决方法

我通过在 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文