必须安装WiX Toolset v3.11(或更高版本)构建工具才能构建此项目 [英] The WiX Toolset v3.11 (or newer) build tools must be installed to build this project

查看:596
本文介绍了必须安装WiX Toolset v3.11(或更高版本)构建工具才能构建此项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

仅安装了Visual Studio 2017和wix扩展,并且尝试构建使用Wix的解决方案时出现以下错误:

Just installed Visual Studio 2017 and wix extension and when trying to build a solution which uses Wix I get the following error:

Error       The WiX Toolset v3.11 (or newer) build tools must be installed to build this project. Could not find wix.targets at 'C:\Program Files (x86)\MSBuild\Microsoft\WiX\v3.x\'. To download WiX Toolset v3.11 (or newer), see http://wixtoolset.org/releases/ Installer   C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Microsoft\WiX\v3.x\Wix.targets 10  

在文件夹"C:\ Program Files(x86)\ MSBuild \ Microsoft \ WiX \ v3.x \"中,我具有以下文件

In folder "C:\Program Files (x86)\MSBuild\Microsoft\WiX\v3.x\" I have the following files

2017-11-29  15:12    <DIR>          .
2017-11-29  15:12    <DIR>          ..
2017-05-01  07:34           293 705 difxapp_x64.wixlib
2017-05-01  07:34           203 950 difxapp_x86.wixlib
2017-02-27  23:52             3 369 LICENSE.TXT
2017-02-27  23:52             4 233 lux.targets
2017-03-28  02:20             9 067 wix.ca.targets
2017-05-01  07:32             1 731 wix.nativeca.targets
2017-03-28  02:20             1 097 wix.targets
2017-02-27  23:52           145 601 wix200x.targets
2017-02-27  23:52           146 067 wix2010.targets

其中包括Visual Studio报告为丢失的文件"wix.targets".我究竟做错了什么?

Which includes the file "wix.targets" which Visual Studio reports as missing. What am I doing wrong?

推荐答案

稍后重新启动计算机,它现在可以工作.因此,如果有人遇到相同的问题,我建议在安装WiX之后再这样做. (重新启动Visual Studio还不够)

A computer-restart later and its now working. So if someone have the same problem I recommend this after installing WiX. (restarting visual studio was not enough)

这篇关于必须安装WiX Toolset v3.11(或更高版本)构建工具才能构建此项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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