Merged Assemblies in NGEN

.NET obfuscator and automated error reporting

Moderators: Luke Jefferson, melvyn.harbour, dom.smith

Merged Assemblies in NGEN

Postby madffm » Fri Aug 23, 2013 11:12 am

Hi,

we are using merge to simplify our deployment process.
In addition we optimize the startup time with NGEN.
But in this combination NGEN gives us some error messages that the embedded assemblies are not found.

Is this a known problem? Is there a solution / workaround?

Mad
madffm
 
Posts: 1
Joined: Wed Oct 31, 2012 6:36 pm

Postby jessica.ramos » Mon Aug 26, 2013 6:45 pm

Hi MAD,

There is a known issue with NGEN'ing embedded assemblies, I'm afraid.. :/

By default NGen will try to resolve and create native images for all dependencies. If it can not find them in the local directory then it will show a rather long warning message, but will continue and create the native images for what it can find. When the application is then run it will use the native images for what it has generated and then revert to JIT for the remaining.

If you embed some of the assemblies then NGen will be unable to find those dependencies in the local directory and so will give you the warnings but will successfully create the native images for the assemblies which aren't embedded.

Unfortunately, refraining from embedding the dependencies seems to be the only way to prevent the errors or to get those dependencies successfully NGen'd
Jessica Ramos
Technical Support
Red Gate Software Ltd.
jessica.ramos
 
Posts: 235
Joined: Mon Apr 23, 2012 1:13 pm


Return to SmartAssembly 6

Who is online

Users browsing this forum: No registered users and 0 guests