The WiX Toolset v3.11 (or newer) build tools must be installed to build this project

后端 未结 5 656
无人共我
无人共我 2021-01-05 01:35

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         


        
相关标签:
5条回答
  • 2021-01-05 02:08

    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)

    0 讨论(0)
  • 2021-01-05 02:11

    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>
    
    0 讨论(0)
  • 2021-01-05 02:11

    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/

    0 讨论(0)
  • 2021-01-05 02:13

    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.

    0 讨论(0)
  • 2021-01-05 02:19

    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.

    0 讨论(0)
提交回复
热议问题