JonnyRaa
JonnyRaa

Reputation: 8038

Wix Build Error

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

Upvotes: 16

Views: 17778

Answers (2)

Willie Cheng
Willie Cheng

Reputation: 8253

To check your Visual Studio version

  1. VS 2017 download enter image description here
  2. VS 2019 download

enter image description here

  1. VS 2022 download enter image description here

Upvotes: 2

JonnyRaa
JonnyRaa

Reputation: 8038

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.

Upvotes: 11

Related Questions