我正在构建 VSIX 项目并看到以下错误消息:
VSSDK1311 vsixmanifest 必须包含“PackageManifest:Installation:InstallTarget:ProductArchitecture”的值。
我需要做什么来解决这个问题?
由于 VS2022 是 64 位,因此您必须指定您支持的目标的体系结构。
您之前可能写过的地方:
<Installation>
<InstallationTarget Id="Microsoft.VisualStudio.Pro" Version="[16.0,17.0)" />
</Installation>
你现在可以写:
<Installation>
<InstallationTarget Id="Microsoft.VisualStudio.Pro" Version="[17.0,18.0)">
<ProductArchitecture>amd64</ProductArchitecture>
</InstallationTarget>
</Installation>
如果您的 VSIX 配置为面向 VS2022以及早期版本您可以使用类似以下内容来指定:
<Installation>
<InstallationTarget Version="[16.0,18.0)" Id="Microsoft.VisualStudio.Pro">
<ProductArchitecture>x86</ProductArchitecture>
</InstallationTarget>
<InstallationTarget Version="[17.0,18.0)" Id="Microsoft.VisualStudio.Pro">
<ProductArchitecture>amd64</ProductArchitecture>
</InstallationTarget>
</Installation>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)