Visual Studio 扩展:启动信息未显示

发布于 2024-08-12 18:54:23 字数 390 浏览 3 评论 0原文

我正在构建(阅读:尝试构建)一个 Visual Studio 集成包,其中包含一些自定义突出显示和智能感知。语言部分工作正常,包正在 IDE 中加载,在非 SDK 机器上安装没有问题。

然而,有一件烦人的事情我无法上班。我想在“关于”框中查看我的软件包详细信息(其中显示所有已安装的软件包,例如 Resharper),启动屏幕也是如此。

根据文档,执行此操作的方法是实现“IVsInstalledProduct”接口。我按照 MSDN 上的说明这样做了,但它根本不起作用!当我在方法上设置断点时,它们似乎从未被调用过。希望这里有人能启发我为什么这不能像预期的那样工作。

笔记: 我还按照其他文章中的建议,从 VS2008 命令提示符运行 devenv.exe /ranu /rootsuffix Exp /setup。

I'm building (read: trying to build) a Visual Studio integration package, which contains some custom highlighting and intellisense. The language part is working fine, the package is being loaded in the IDE, installing on non-SDK machines without problems.

However, here's one annoying thing I can't get to work. I want to see my package details in the about box (which shows all the installed packages like Resharper), ditto for the splash screen.

According to the documentation, the method to do this is to implement the 'IVsInstalledProduct' interface. I did this, following the instructions on MSDN, but it simply doesn't work! When I put breakpoints on the methods it seems like they're never called. Hopefully there's anyone here who can enlighten me on why this doesn't work like it is supposed to.

Note:
I also ran devenv.exe /ranu /rootsuffix Exp /setup from the VS2008 command prompt, as recommended in other articles about this.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

十六岁半 2024-08-19 18:54:23

您是否在 HKLM\Software\Microsoft\VisualStudio\versionNumber\InstalledProducts 注册表项下注册了扩展程序?

如果它是托管软件包,请不要忘记对其应用 [InstalledProductRegistration] 属性,这将处理该注册表项的创建。

Did you register your extension under the HKLM\Software\Microsoft\VisualStudio\versionNumber\InstalledProducts registry key?

If it's a managed package, don't forget to apply the [InstalledProductRegistration] attribute to it, which will handle the creation of that registry key.

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