Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
为什么我的绑定时间变量在从WiX v3迁移到v4后失败?_Wix_Wix4 - Fatal编程技术网

为什么我的绑定时间变量在从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@基兰赫德,