Hi everybody.
I'm trying to use the ngen tool from framework 2.0, to accelerate the load runtime of my app.
I'll explain here what I'm doing.
First I copy&paste the ngen.exe to the Bin folder of my project (to not have to especify the path), where is the .exe of my app.
Then, in the CMD, i go to the same folder to execute the ngen, and I've tried differents ways to create the native image.
One way was create the aimages of the .exe and the .dll separatedly:
ngen MyApp.exe
ngen MyDll.dll
That creates both images.
Another way was creating at the same time.
ngen MyApp.exe, "MyDll.dll"
with the same result.
Note: I've didn't spicificated the version or the publickeytoken, cause I've readed that this is only useful when you have differents version of the same DLL.
Ok, the problem comes here. I've tried a test, generating the images and delete the DLL from the folder, to see if the executable file uses the native image of the DLL instead of the DLL file in the folder.
But the application fails to open.
I'm not sure if I've done well the native images, and I don't know exactly how to invoke them later.
I'm so noob, and don't know much about compilators and stuff like that, so, if anyone can explain to me how to use ngen I will thank a lot.
I saw the documentation of the MSDN and readed some articles from teh web, but all that was too tachnical for me. I like to try with some simple example or something for DUMMIES like me.
Thanks a lot and please, excuse my english.
:)