简体   繁体   中英

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:

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

This will show the version number 2.1.3 in the extensions modal as expected. But the version number is not correctly shown on the extension name in the About Microsoft Visual Studio dialog. Example here:

关于 Microsoft Visual Studio 对话框

This is just an example and doesn't relate to the 2.1.3 version number. 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.

Where can I modify the version number displayed in the About Microsoft Visual Studio dialog?

The version number (and other information) displayed in Help/About comes from the registration in your derived AsyncPackage class:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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