为什么我的绑定时间变量在从WiX v3迁移到v4后失败?
给定以下捆绑包:为什么我的绑定时间变量在从WiX v3迁移到v4后失败?,wix,wix4,Wix,Wix4,给定以下捆绑包: <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal" xmlns:fire="http://wixtoolset.org/schemas/v4/wxs/firewall" xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util">
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"
xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal"
xmlns:fire="http://wixtoolset.org/schemas/v4/wxs/firewall"
xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util">
<Bundle Name="!(bind.packageName.Setup)"
Version="!(bind.packageVersion.Setup)"
Manufacturer="!(bind.packageManufacturer.Setup)"
UpgradeCode="$(var.UpgradeCode)">
<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.HyperlinkLicense">
<bal:WixStandardBootstrapperApplication LicenseUrl=""
SuppressOptionsUI="no"
ShowVersion="yes"
SuppressRepair="yes" />
</BootstrapperApplicationRef>
<Chain>
<MsiPackage Id="Setup"
Compressed="yes"
Name="$(var.ProductName)"
SourceFile="foo.exe"
DisplayInternalUI="yes"
Vital="yes" />
</Chain>
</Bundle>
</Wix>
对于v3,我在构建boostrapper时没有遇到任何问题,对于最近的v4版本(4.0.2926.0),我遇到了以下错误:
4> Bootstrapper\Bundle.wxs(14,0):错误LGHT0298:未解析的绑定时间变量!(bind.packageVersion.Setup)。4> light.exe(0,0):错误LGHT0001:输入字符串的格式不正确。
4> 已完成构建项目“Bootstrapper.wixproj”--失败
这可能是WIXV4中的一个bug。WiX v4.0仍在积极开发中,处于测试前阶段。请在上提交一个bug,这样我们就不会丢失它。您从哪里下载了v4.0.2926.0。我看到的可供下载的版本是v4.0.2719.0@基兰赫德,