I have a wixproj that creates an MSI, with references to a csproj. This is being built on teamcity, with a number of build steps:
- NuGet install
- Build csproj (default targets)
- Run signtool on built .exe
- Build wixproj (default targets)
- Run signtool on built .msi
The msi gets signed, but once installed, the .exe is not.
Investigating this, it turns out that running msbuild with the default targets on the wixproj rebuilds the exe, overwriting the signed one.
I tried changing the targets on the wixproj build step, but "Candle" is unknown, and "Compile" errors out with "Undefined preprocessor variable '$(var.App.TargetPath)'"