Search code examples
msbuildwixwix3.5heat

How do I fix a HEAT5301 error with WiX 3.5.1811.0


My project, which used to build fine with WiX 3.0, now fails with

heat.exe : error HEAT5301: Invalid project output group: Binaries3bSources3bSatellites%3bDocuments.

I found this ProjectOutputGroup in the wix.targets file but it looks like this:

<CreateItem 
  Include="@(_MSBuildProjectReferenceExistent)" 
  Condition=" '%(_MSBuildProjectReferenceExistent.DoNotHarvest)' == '' " 
  AdditionalMetadata="ProjectOutputGroups=Binaries%3BSymbols%3BSources%3BContent%3BSatellites%3BDocuments;GenerateType=payloadgroup;HeatOutput=$(IntermediateOutputPath)_%(_MSBuildProjectReferenceExistent.Filename).wxs">
  <!-- ... -->
</CreateItem>

It looks like the % is being discarded for the first 2 values, but is still present for the last one.


Solution

  • First try upgrading to the latest build. WiX v3.5 is under development so the issue might have been fixed. If not, be sure there is a bug open on the issue so the community knows about the problem. Finally, you can try debugging the HeatTask to see where it is going awry.