我正在构建一个VSIX项目并看到以下错误消息:
V6清单必须包含'PackageManifest:Installation:InstallTarget:ProductArchitecture'.的值。
VSSDK1311
我该怎么做才能解决这个问题?
发布于 2021-05-31 07:22:47
由于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>https://stackoverflow.com/questions/67769432
复制相似问题