The processed EXE is placed in the native image cache, which is part of the
GAC.
The CLR knows that it needs to load it from there whenever its run.
I don't believe VS.NET has a substitution variable for the target output
(the EXE).

Signature
____________________
Klaus H. Probst, MVP
http://www.vbbox.com/
> Hi people,
>
> I tried to use ngen.exe on an executable generated by C#, but I don't see where the generated executable is placed. I use it as follows (from the
tools menu):
> ngen.exe "$(ProjectDir)bin\release\myprogram.exe"
>
> The output goes to the output window, and it doesn't say it failed. But the original file doesn't appear to have changed, and I don't see a new
executable appear.
> Another question. How can I make the tools window take the program executable as an argument, without specifying it like I did above? I don't
see a tag for the executable.
> Thank you,
> Tom.