开发者

Run a C# Program without having .NET Framework [duplicate]

This question already has answers here: 开发者_如何转开发 Closed 11 years ago.

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.


  1. 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.

  2. Consider the fact also, that on latest Windows OS its already shipped "builtin".

Regards.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜