0

在为 Visual Studio 开发扩展时,您可以在vsixmanifest文件中指定扩展的版本号,如下所示:

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

2.1.3这将按预期在扩展模式中显示版本号。但版本号未正确显示在“关于 Microsoft Visual Studio ”对话框中的扩展名上。这里的例子:

关于 Microsoft Visual Studio 对话框

这只是一个示例,与2.1.3版本号无关。但是我看到我构建的扩展也显示1.0在此对话框的版本号中,即使我在vsixmanifest文件中指定了更高版本的字符串。

在哪里可以修改“关于 Microsoft Visual Studio ”对话框中显示的版本号?

4

1 回答 1

2

Help/About 中显示的版本号(和其他信息)来自派生的 AsyncPackage 类中的注册:

[InstalledProductRegistration("#110", "#112", "2.5", IconResourceID = 400)] // Info on this package for Help/About
于 2021-06-21T12:12:40.347 回答