Wix Installer won't build on buildserver

僤鯓⒐⒋嵵緔 提交于 2021-02-11 14:25:10

问题


I have tried to build a Wix MSI using our build server. I have set the build configuration in the Configuration manager to DEBUG/x86. All the other projects build correctly EXCEPT for the Wix Installer.

Initially there was an error requesting the latest version of WIX was installed on the build server "The WiX Toolset v3.11 (or newer) build tools must be installed to build this project. To download the WiX Toolset, see http://wixtoolset.org/releases/" so I follwed this - https://subscription.packtpub.com/book/web_development/9781784393212/1/ch01lvl1sec12/compiling-a-wix-installer-on-a-build-machine-using-msbuild also have used this - https://wixtoolset.org/documentation/manual/v3/msbuild/wix_with_team_build.html

Now the build freezes on the Wix project and eventually times oout at 59 minutes. What would be wrong? what needs correctling?

I have tried these suggestions already - https://subscription.packtpub.com/book/web_development/9781784393212/1/ch01lvl1sec12/compiling-a-wix-installer-on-a-build-machine-using-msbuild also have used this - https://wixtoolset.org/documentation/manual/v3/msbuild/wix_with_team_build.html

Expecting it to build, then I can create an MSI file.


回答1:


.NET 3.5: This might very well be something else, but maybe try to install the .NET Framework 3.5. WiX 3.x has a build-dependency requiring this .NET version.

How-To: Please see this answer for more details: WiX Toolset: Creating a simple WiX project breaks in VS2017: The "CreateProjectReferenceDefineConstants" task was not found



来源:https://stackoverflow.com/questions/56704567/wix-installer-wont-build-on-buildserver

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!