compile c# to native

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?
 
P

pvdg42

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++.
 
M

Michael Nemtsev

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
 
G

Guest

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
 
D

Dave Sexton

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top