我正在尝试使用Wix在Visual Studio 2015中创建一个bootstrapper项目。
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension"
xmlns:bal="http://schemas.microsoft.com/wix/BalExtension">
<Bundle Name="..." Version="1.0.0.0" Manufacturer="..." UpgradeCode="...">
<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense">
<bal:WixStandardBootstrapperApplication LicenseFile="mtel-eula-free.rtf"/>
</BootstrapperApplicationRef>
<BootstrapperApplicationRef Id="WixBootstrapperApplication:WixNetFxExtension" />
<BootstrapperApplicationRef Id="ManagedBootstrapperApplicationHost">
<Payload
Name="BootstrapperCore.config"
SourceFile="$(var.TargetDir)\BootstrapperCore.config"/>
<Payload
SourceFile="$(var.TargetPath)"/>
</BootstrapperApplicationRef>
<Chain>
<PackageGroupRef Id="NetFx45Web"/>
<MsiPackage Id="MTESetup" SourceFile="$(var.MTESetup.TargetPath)"/>
</Chain>
</Bundle>
</Wix>引导程序的项目名称是MTEBootstrapper,MSI的wix项目的项目名称是MTESetup。对于MTEBootstrapper,我从Wix 3.10添加了对WixNetFxExtension.dll的引用;在MTEBootstrapper的属性中,我添加了-ext WixNetFxExtension.dll。现在,当我尝试构建MTEBootstrapper时,我得到了这个错误:
Error The extension 'Microsoft.Tools.WindowsInstallerXml.Extensions.NetFxExtension' contains a defintion for table 'NetFxNativeImage' that collides with a previously loaded table definition. Please remove one of the conflicting extensions or rename one of the tables to avoid the collision. MTEBootstrapper light.exe 0 我不知道这是什么原因。我该如何修复它?
发布于 2016-09-09 22:24:44
当我将对WixNetFxExtension的引用和链接器的-ext选项都添加到MTEBootstrapper中时,似乎出现了这个错误。我删除了链接器的-ext选项,冲突错误消失了。
(另外,我得到了一个未解析的symbol WixNetFxExtension,我将为它单独提交一个问题。)
https://stackoverflow.com/questions/39404644
复制相似问题