How to check whether there is already an ngen Image or not,...?

  • Thread starter Thread starter Kerem Gümrükcü
  • Start date Start date
K

Kerem Gümrükcü

Hi,

how can i reliably check whether there is already
an ngen image of my application or not. Can i
do this with Reflection/Interop/Unmanaged APIs
or what is the right way for that,...?

Thanks in advance,...

Regards

Kerem

--
 
Kerem said:
how can i reliably check whether there is already an ngen image
of my application or not.

I'm curious - why would you care?

If one exists, the Framework will use it.
If not, or of the corresponding I.L. "version" is more recent than the
ngen image, the Framework will use that instead.
Can i do this with Reflection/Interop/Unmanaged APIs
or what is the right way for that,...?

ngen.exe /show <AssemblyName>

will tell you.

HTH,
Phill W.
 
Back
Top