SiteMap  | About    

C# command line tools

CSC is the command for compiling the CSharp source code on Command Line . When you run the CSC Command on Command line the program generate a .EXE file. Create new Text document and copy and paste the following source code save it as NewProg.cs .

using System;

class NewProg
	static void Main(string[] args)
		Console.WriteLine("My First Program");

Go to the command prompt and issue the following command for compilation.
csc NewProg.cs

When the compiler compile the program , if any error occurred in the source code , it will display in the command prompt

After the successful compilation you will get NewProg.exe file

You can execute the file in the command prompt by giving exe file name (NewProg) . (C) 2016    Founded by raps mk
All Rights Reserved. All other trademarks are property of their respective owners.