C# – Wix Build Error

cwix

When running wix I get the following Error:

with error MSB4019: The imported project “C:\Program Files\MSBuild\Microsoft\WiX\v3.x\Wix.targets was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.

enter image description here

Best Answer

Not sure about other problems that might cause this but I was unaware that Wix is not installed alongside ms build.

I was trying to build a project that was sat on our build server and ran into this problem.

You need to download and install it from http://wix.sourceforge.net/ first.

Another commonly used package is MSBuild Community tasks which is available from

https://github.com/loresoft/msbuildtasks

The last stable release is downloadable from the bit called nightly builds!

This will give a similar error message.