我是 WiX 的新手。我刚刚安装了WixW 3.7以构建开源JiraSVN 插件。但是 Visual Studio 中的构建中断并出现以下错误:
The RegistryKey element contains an unexpected attribute 'ForceDeleteOnUninstall'.
The RegistryKey element contains an unexpected attribute 'ForceCreateOnInstall'.
这些错误引用了 product.wxs 文件,该文件包含以下元素:
<Component Id="C__Registry" Guid="{40D60013-...D30D5}" Win64="yes">
<RegistryKey Root="HKCR" Key="CLSID\{CF732FD7-...1A7E9D}" ForceDeleteOnUninstall="yes">
<RegistryValue Value="TortoiseSVN Jira Plugin" Type="string" Action="write" />
<RegistryKey Key="Implemented Categories">
<RegistryKey Key="{3494FA92-...5E7831}" ForceCreateOnInstall="yes" /> </RegistryKey>
</RegistryKey>
</Component>
我也收到警告,例如:
The 'ForceDeleteOnUninstall' attribute is not declared.
The 'ForceCreateOnInstall' attribute is not declared.
根据我在 WiX 文档中可以找到的内容,这些是 WiX 框架中的标准属性。那么是什么导致他们无法识别呢?应该在哪里声明?