Native Code Compiler - Do you need Frame work to run after the code has been compiled using NGEN.exe

  • Thread starter Thread starter vijayanandkannan
  • Start date Start date
V

vijayanandkannan

Hi All,

I need some clarification on this below.

If we use NGEN to generate native image, still do we require .net
framework ?

When we use use NGEN , it will install native image in Gloabl cache .
from there

I can copy the native image(.exe) and put it in some other machine
where u don't have .net. Now if i double click the native image(other
machine) , will it work ?

I appreciate your help

Thanks & Regards


Vijay Anand Kannan
 
Hi Vijay,

Unfortunatly you will still require the Framework to run NGEN'd assemblies

NGEN only creates a native image of an assembly, it will still require the
CLR and Framework assemblies to run

If you absolutly must be able to run .NET applications without the framework
installed, you might want to have a look at http://www.remotesoft.com/ they
have a product called the Salamander .NET Native Compiler that will allow
you to compile .NET applications so that they will run without the Framework
installed.

Regards

James Thresher
 
Hi All,

I need some clarification on this below.

If we use NGEN to generate native image, still do we require .net
framework ?

When we use use NGEN , it will install native image in Gloabl cache .
from there

I can copy the native image(.exe) and put it in some other machine
where u don't have .net. Now if i double click the native image(other
machine) , will it work ?

I appreciate your help

Thanks & Regards


Vijay Anand Kannan

No, whatever you do with your assemblies you still need the runtime
installed. Note also that NGEN is meant to pre-compile on the target machine
only, it makes no sense to ngen on a development system and distribute the
ngen'd image.

Willy.
 
Back
Top