Team Services无法构建wix安装程序

时间:2017-04-28 22:25:19

标签: msbuild wix azure-devops wix3

我选择了团队服务(Visual studio online)作为我团队的新存储库,我们正在开发c#项目。我们正在使用WiX安装程序,

团队服务msbuild可以构建我们的解决方案项目,除了wix,<​​/ p>

我已按照wix说明进行了此处提到的每日构建说明http://wixtoolset.org/documentation/manual/v3/msbuild/daily_builds.html

我已将所有必需文件添加到文件夹中,并将其推送到存储库中 .wixproj的上下文如下:

<Project>
...

  <PropertyGroup>
    <WixToolPath>$(SolutionDir)Tools\wix\3\bin\</WixToolPath>
    <WixTargetsPath>$(WixToolPath)Wix.targets</WixTargetsPath>
    <WixTasksPath>$(WixToolPath)wixtasks.dll</WixTasksPath>
  </PropertyGroup>
  <Import Project="$(WixTargetsPath)" Condition=" '$(WixTargetsPath)' != '' " />
  <!--<Import Project="$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets" Condition=" '$(WixTargetsPath)' == '' AND Exists('$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets') " />-->
  <Target Name="EnsureWixToolsetInstalled" Condition="$(WixTargetsImported)' != 'true' ">
    <Error Text="The WiX Toolset v3 build tools must be installed to build this project. To download the WiX Toolset, see http://wixtoolset.org/releases/" />
  </Target>
</Project>

但是团队服务仍然抱怨如下

  

light.exe(0,0):错误LGHT0217:执行ICE操作&#39; ICE01&#39;时出错。这种ICE故障的最常见原因是错误的   注册脚本引擎。看到   http://wixtoolset.org/documentation/error217/了解详情和方法   解决这个问题。预期不会出现以下字符串格式   外部UI消息记录器:&#34; Windows Installer服务可以   不被访问。如果Windows Installer不是,则会发生这种情况   正确安装。联系您的支持人员   援助&#34;

我怎样才能克服这个问题?

1 个答案:

答案 0 :(得分:1)

最后,我可以通过wix安装程序的属性禁用验证来解决它,

更多可以在这里找到 WiX ICE validation errors