My solution has 2 projects:
- A .NET 6 project
- A Wix Project to build an installer.
When I build the solution in Visual Studio, it works and my msi is generated. However when I try the same with the command:
dotnet build 'foo.sln'
I get the following error:
error : The WiX Toolset v3.11 (or newer) build tools must be installed to build this project. To download the WiX Toolset, se e http://wixtoolset.org/releases/
I tried setting the WixTargetsPath
in my .wixproj to the absolute path of the Wix bin folder but still no luck. Any idea why is it so?