I'm harvesting a directory for my Visual Studio solution.
It works on my local system so far probably because the project build order is being respected.
When I run the installer on a build server it finds the right directory but it has not been created at the time of building the setup file. It throws a HEAT5052
error saying The directory 'a:\b\c' could not be found
.
Is there any way to "wait" until or to execute the heat command after all project references are built?
OK so I've spent hours to figure out how to fire
Heat
AFTER all references are resloved. I only found solutions for the<PreBuildEvent>
and<PostBuildEvent>
using theHeat
command line and theBeforeBuild
andAfterBuild
targets.So I found all kind of targets inside the
wix2010.targets
file located in myProgram files (x86)\MSBuild\Microsoft\Wix\
folder. It contains a target calledAfterResolveReferences
and it does exactly that. So here's my code I ended up with (in case someone is interested):