Like you would compile a C++ program. But with C# you always need the .NET framework (such a draw back sometimes). Is there anyway that you can compile the program and run it without .NET?

With C++ you have the C++ runtime, also. But there are companies that claim they can generate a stand alone executable. Use your favortie search engine.

Look into Mono framework...
Ultimately if you compile a .net application it references (at a minimum) system.core from the framework. Therefore you need the .net framework installed in order to run it...

vote me up if it helped....

You need to write your own C# compiler. there are not any compiler in the market for this purpose.