Getsuyodev, Programming is mainly used when constructing an application. Programming requires knowledge of application domains, algorithms, and programming language expertise. Programming can be developed in different logic based on developer knowledge.

C# Command line tools

CSC is the command for compiling the C Sharp source code on Command-Line. When you run the CSC Command on Command line, the program generates a.EXE file. Create a 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) .

Comments are closed.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More