Re: How to compile c# code to not be dependent on CLR
- From: "Francois PIETTE" <fpiette@xxxxxxxxxxxxxxxxx>
- Date: Tue, 24 Oct 2006 20:30:31 +0200
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?
As far as I know, this is not possible. VS2005/C# generate code to be run
under the .NET framework, that is the CLR. Not only the compiler generate IL
code for CLR, but it make heavy use of the .NET runtime classes.
I would like to generate a binary for lets say Windows XP.
It looks like you want to generate a win32 program. C# is not the right
language to do that. You sould use another language. For example C++ or
Delphi which have both win32 and .NET compilers. I personally like Delphi
because the same IDE (BDS2006) is able to handle Delphi.win32, Delphi.net,
C# (.NET only) and C++ (win32 only) within the same IDE. Delphi is
particulary interesting because you can more or less have single source code
for both win32 and .NET (You have to pay attention to the runtime you use.
They provide VCL.NET and VCL.WIN32 which is a cross platform component
library. See http://www.borland.com/us/products/delphi/index.html).
--
Francois PIETTE
http://www.overbyte.be
.
- References:
- How to compile c# code to not be dependent on CLR
- From: Marcus
- How to compile c# code to not be dependent on CLR
- Prev by Date: Re: Vistual Studio 2005 Professional
- Next by Date: Re: VS2005 and Dual Monitors
- Previous by thread: How to compile c# code to not be dependent on CLR
- Index(es):
Relevant Pages
|