Click here to Skip to main content
15,903,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
What is the simplest way to run and/or compile C# in a Windows evironment?
Posted
Updated 17-Dec-09 9:18am
v2

If you dont have Visual Studio :
To run a program, Open console and run

csc.exe yourcsfile.cs

The Compiled exe will be produced on the same folder you are in.

Check this :
http://www.csharphelp.com/2006/12/c-tutorial-for-beginners/[^]

:cool:
 
Share this answer
 
wrote:
What is the simplest way


Simplest would be to get hold of the 2008 express edition and compile your program.
 
Share this answer
 
First install the runtime and then run the program.
If you need the development environment, install the Express edition - it's free.
 
Share this answer
 
v2
It completely depends on how many references you have. "csc.exe file.cs" only works if you need no references except for perhaps, mscorlib. It'd be a total pain to not use VS, IMHO.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900