VS 2015 错误:必须安装 WiX Toolset v4 构建工具才能构建此项目 [英] VS 2015 Error:The WiX Toolset v4 build tools must be installed to build this project
问题描述
我有 VS 2015 并且我已经安装了 Wix v3.10 但是当我尝试构建安装项目时它显示了这个错误:
I have VS 2015 and I have installed Wix v3.10 but when I try to build the setup project it shows me this error:
必须安装 WiX Toolset v4 构建工具才能构建此项目.
The WiX Toolset v4 build tools must be installed to build this project.
我不想安装 wix v4,因为它还不稳定.
I don't want to install wix v4 because it's not stable yet.
我怎样才能摆脱这个错误?
How I can get rid of this error?
推荐答案
VS2017 和 WiX 3.11 也有这个错误.
Had this error too with VS2017 and WiX 3.11.
我在我的解决方案中添加了 WiX 工具集 v4 安装项目作为新项目,而不是 WiX 工具集 v3 安装项目.我在构建时不断收到相同的错误.
I had added WiX Toolset v4 Setup Project as a new project in my solution instead of WiX Toolset v3 Setup Project. I kept getting the same error upon build.
所以我在解决方案中添加了一个 WiX 工具集 v3 安装项目并*删除了 WiX 工具集 v4 安装项目(错误一直存在,直到我删除了 WiX 工具集 v4 安装项目).
So I added a WiX Toolset v3 Setup Project to the solution and *deleted the WiX Toolset v4 Setup Project (the error remained until I deleted WiX Toolset v4 Setup Project).
现在错误消失了,构建工作,我的安装程序工作.这是你身边的同样问题吗?这是一个可能有助于说明的屏幕截图:添加新项目窗口
Now the error is gone, the build works and my Installer works. Is this the same problem on your side? Here's a screenshot that might help illustrate: Add New Project window
这篇关于VS 2015 错误:必须安装 WiX Toolset v4 构建工具才能构建此项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!