Run a C# Program without having .NET Framework [duplicate]
Possible Duplicate:
Can you compile C# without using the .Net framework?
im sure it's a common question. I did read about it but I don't know how to actually do it. I did see an answer over here that to remove system.dll and another reference, but I can't because I use them, so I read that I can include the Framework in my program or something like that. but how?
Thanks!
Edit: I mean to run after I compiled, sorry, my mistake
I'm afraid that you cannot compile a C# program without the .NET Framework (or equivalent such as Mono) it was written for. There are some ways you can run a program without the framework, but not compile.
I would say, no by my opinion. You need "something" that compiles your code into binary. Will be this .NET Framework, Mono, MyOwnVeryCool framework, you have to have some dependency. If you think about .NET platform you need to compile to IL, so you have a dependecy from CLR, if you don't want compile to IL, so it's not more .NET platform.
Consider the fact also, that on latest Windows OS its already shipped "builtin".
Regards.
精彩评论