compile c# to native

  • Thread starter Thread starter Marcus
  • Start date Start date
M

Marcus

How can I compile my VS2005 c# code to not be dependent on CLR to run?

I want people that install my software to be able to run it without
having to bother with CLR's and "Windows installers".


I would like to generate a binary for lets say Windows XP.


How do I do this?
 
Marcus said:
How can I compile my VS2005 c# code to not be dependent on CLR to run?

I want people that install my software to be able to run it without
having to bother with CLR's and "Windows installers".


I would like to generate a binary for lets say Windows XP.


How do I do this?
Forget it. C# is a .NET language, as are VB .NET and J#.
FWIW, what you want is also not possible with Java.
If you want the capability you describe, use C++.
 
Hello marcus,

There is no way, because C# needs runtime to be run, like Win apps request
some Win32 libs to start

There are some ways to mitigate users with installers - use ClickOnce or
use 3rd part tools which include everything u need into your app like Xenocode
or RemoteSoft

See there more info about it http://www.yoda.arachsys.com/csharp/faq/#framework.required


m> How can I compile my VS2005 c# code to not be dependent on CLR to
m> run?
m>
m> I want people that install my software to be able to run it without
m> having to bother with CLR's and "Windows installers".
m>
m> I would like to generate a binary for lets say Windows XP.
m>
m> How do I do this?
m>
---
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
Dear Marcus,

Any Program which u develop with .net framework needs CLR.as we know the
Application developed with .net are JIT compiled (i.e. when ever your
application it will be compiled at that time) its not possiable to run .

But we have one way to run your application on Linux by using Mono.(its a
framework for Linux platform just try it out it may help you).Here is the Link

http://www.mono-project.com/Main_Page

Regards
Prabakar
 
Hi Mattew,
You can compile your IL code into native code using a utility called the
Native Image Generator (Ngen.exe).

But the framework is still required to be installed on the host machine in
order to run the application.
 
Back
Top