I'm using Wix/Votive to build an installer for my .NET Solution. I include the binaries from the other projects (EXE and DLLs) using project references (which internally uses heat.exe
I think).
What I want to do now is, to pre-jit all assemblies with ngen.exe
during installation. According to the Wix help, this can be done thru the WiX .NET extensions library:
<Component Id="App.exe" Guid="PUT-GUID-HERE">
<File Id="App.exe" Source="App.exe" KeyPath="yes">
<netfx:NativeImage Id="ngen_App.exe" Platform="32bit" Priority="0" />
</File>
</Component>
Now the problem is, that the <File />
tags are created by heat.exe
and I can't figure out how to either advise heat.exe
to generate the <NativeImage />
tag inside or how to reference the generated <File />
tag and attach the <NativeImage />
tag externally.
Right now, the only way I see is not to use project references, but obviously I would like to keep them.
Any suggestions? Thanks!