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
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
Which includes the file "wix.targets" which Visual Studio reports as missing. What am I doing wrong?
To use a WiX extension when building in Visual Studio with the WiX Visual Studio package: Right-click on the WiX project in the Visual Studio solution explorer and select Add Reference... In the Add WiX Library Reference dialog, click on the Browse tab and browse to the WiX extension DLL that you want to include.
Windows Installer XML Toolset (WiX, pronounced "wicks"), is a free software toolset that builds Windows Installer packages from XML.
11.2 released 2019/09/18.
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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With