确保无需安装工具包即可构建 WiX 项目的最简单方法是什么? [英] What's the simplest way to ensure that WiX projects build without having to install the toolkit?

查看:27
本文介绍了确保无需安装工具包即可构建 WiX 项目的最简单方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了一些问题在构建服务器上构建的 WiX 项目.痛点之一是我的 WiX 项目正在引用 c:\program files... 中的库,并且构建过程在同一路径中调用可执行文件.这太糟糕了,因为我必须安装 WiX 工具包才能构建我的项目.

I've had some trouble getting WiX projects to build on build servers. One of the pain points has been that my WiX projects are referencing libraries in c:\program files... and the build process calls executables in the same path. This is a bummer because I have to install WiX toolkit in order to get my project to build.

通过将所有构建工具放在正在构建的项目本地来消除这种头痛的最佳方法是什么?

What's the best way to eliminate this headache by having all build tools local to the project being built?

是否有执行此操作的 nuget 包?(在撰写本文时似乎没有,但我想验证一下.)包还原功能会很好,因为这样我就不必在 git 中包含(许多)WiX 文件.

Is there a nuget package that does this? (At the time of writing it appears not, but I wanted to verify.) Package Restore capability would be nice because then I don't have to include the (many) WiX files in git.

如果没有,我需要从 WiX 下载什么?我需要修改什么才能让编译器知道在哪里可以找到用于构建 WiX 项目的二进制文件?

If not, what do I need to download from WiX? What do I need to modify so that the compiler knows where to find the binaries to build WiX projects?

推荐答案

您可以从 下载 WiX 二进制文件 .ziphttp://wixtoolset.org/releases/ 然后您可以修改您的 wixproj 文件并更新 <WixToolPath></WixToolPath> 元素以指向您的 WixBinaries

You can download just the WiX Binaries .zip from http://wixtoolset.org/releases/ then you can modify your wixproj file and update the <WixToolPath></WixToolPath> element to point to your WixBinaries

WiX 文档中有一篇文章解释了如何:将 Wix 项目集成到您的日常构建中

The WiX documentation has an article that explains how: Integrating Wix Projects into your Daily Builds

这篇关于确保无需安装工具包即可构建 WiX 项目的最简单方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆