简体   繁体   English

在 Visual Studio 的关于对话框中显示正确的扩展版本号

[英]Showing the correct version number of an extension in the about dialog in Visual Studio

When developing extensions for Visual Studio you specify the version number of the extension in the vsixmanifest file like this:在为 Visual Studio 开发扩展时,您可以在vsixmanifest文件中指定扩展的版本号,如下所示:

<Metadata>
    <Identity ... Version="2.1.3" ... />

This will show the version number 2.1.3 in the extensions modal as expected.这将按预期在扩展模式中显示版本号2.1.3 But the version number is not correctly shown on the extension name in the About Microsoft Visual Studio dialog.但版本号未正确显示在“关于 Microsoft Visual Studio ”对话框中的扩展名上。 Example here:这里的例子:

关于 Microsoft Visual Studio 对话框

This is just an example and doesn't relate to the 2.1.3 version number.这只是一个示例,与2.1.3版本号无关。 But I see that an extension I have built also display 1.0 in the version number in this dialog even though I specified a higher version string in the vsixmanifest file.但是我看到我构建的扩展也在该对话框的版本号中显示1.0 ,即使我在vsixmanifest文件中指定了更高版本的字符串。

Where can I modify the version number displayed in the About Microsoft Visual Studio dialog?在哪里可以修改“关于 Microsoft Visual Studio ”对话框中显示的版本号?

The version number (and other information) displayed in Help/About comes from the registration in your derived AsyncPackage class: Help/About中显示的版本号(以及其他信息)来自于你派生的AsyncPackage中的注册class:

[InstalledProductRegistration("#110", "#112", "2.5", IconResourceID = 400)] // Info on this package for Help/About

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM