heat.exe harvesting adding the old v3 namespace to the harvested file
07:23 28 Jun 2024

I ran into this problem when upgrading from WiX v3 to v4 and want to provide an answer that worked for me, as I did not find any here.

The Problem

In my case, I was trying to automate the process for upgrading my installer when changes are made to the source code. So I created a setup.build with a couple of targets. They included:

  1. Publishing my Web App
  2. harvesting it
  3. building the installer

The problem arises after the harvesting part, because when building the installer which is in WiX v4, it complains about the namespace added in the harvested file which is v3.

What to do?

msbuild wix heat