I try to do the following:
Put a complete program to gac and start it from there.
I tried:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen install C:\GacTest\test.exe
The output said a lot with compiling assemblies which looked good - references classes should be bundled with application.
But how can I now start the application from GAC? As .net4.5 32 bit application i assumed that there would be a folder C:\Windows\Microsoft.NET\assembly\GAC_32\test - but there isn't
ngen display ..\text.exe
shows the original folder as ngen roots and a native image called Text, Version..., Culture
Maybe some information why I want to use ngen: An application needs a long startup time which should be reduced. On different places there is the information that ngen could speed up the startup time. If i try just the install as above and start from application directory - the startup time is neither changed to better or worse and I just don't know wether precompiled GAC version or jitted version is used. (That would be the bonus question - how do i know which one is used?)