2016-09-09 31 views
1

我正在嘗試創建一個wix引導程序配置。未解決的引用符號'WixBootstrapperApplication:WixNetFxExtension'節'Bundle:...'

我Bundle.wxs:

<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="WixNetFxExtension" /> 
    <BootstrapperApplicationRef Id="ManagedBootstrapperApplicationHost"> 
     <Payload 
     Name="BootstrapperCore.config" 
     SourceFile="$(var.TargetDir)\BootstrapperCore.config"/> 
     <Payload 
     SourceFile="$(var.TargetPath)"/> 
    </BootstrapperApplicationRef> 
    <Chain> 
     <PackageGroupRef Id="NetFx452Web"/> 
     <MsiPackage Id="MTESetup" SourceFile="$(var.MTESetup.TargetPath)"/> 
    </Chain> 
    </Bundle> 
</Wix> 

錯誤:

Unresolved reference to symbol 'WixBootstrapperApplication:WixNetFxExtension' in section 'Bundle:...' 

我已經添加WixNetFxExtension在我的引導程序項目的引用。

回答

1

刪除行

<BootstrapperApplicationRef Id="WixNetFxExtension" /> 

WixNetFxExtension是WiX的擴展,而不是一個BootstrapperApplication的名稱。每捆只能有一個BootstrapperApplicationBootstrapperApplicationRef