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 Toolse
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)
Open your csprog project file with notepad and edit this line (in my case I use WiX version 4)
From:
<WixCATargetsPath Condition=" '$(WixCATargetsPath)' == '' ">$(MSBuildExtensionsPath)\WiX Toolset\v4\Wix.CA.targets</WixCATargetsPath>
To:
<WixCATargetsPath Condition=" '$(WixCATargetsPath)' == '' ">C:\Program Files (x86)\WiX Toolset v4.0\SDK\Wix.CA.targets</WixCATargetsPath>
To fix this issue you need download and install: "WiX Toolset build tools" also NOT just "WiX Toolset Visual Studio Extension" from here: https://wixtoolset.org/releases/
I tried the above solution and wasn't able to resolve the issue even after repeated reinstall and reboots.
I removed the existing setup project and created a new setup project, this solved my issue. Caution, backup your setup project before removing it so you don't loose your work or have to recreate from scratch.
May be a tip to others who might be stuck with the issue even after reinstall and reboots.
I had installed the WiX.Toolset package via NuGet package manager. Latest is 3.9.1208 as of this post, however my installer wanted at least 3.11. I uninstalled the WiX.Toolset package and installed the Wix.Toolset.UnofficialFork package, which is v3.11.2. After a restart of VS, everything worked great.