CSharp.Net-Informations.com
   Home      .Net Framework      VB.NET      C#                                                                      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 .

         C# Source Code Download           Print Source Code
         C# command line tools - Download
        
C# Tutorial

using System;

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

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


CSharp overview Related Contents
*     An overview of Microsoft .Net Framework
*     An introduction to C#
*     C# and VB.NET
*     C# and JAVA
*     C# sample programs
*     C# console based application
*     C# windows based application
*     C# command line arguments


   Home      VB.NET      C#
CSharp Related Topics
*     An overview of Microsoft CSharp
*     C# Language Tutorial
*     C# Statements Tutorial
*     C# Collection Tutorial
*     C# String Tutorial
*     C# File Operations Tutorial
*     C# Excel Tutorial
*     C# Crystal Reports Tutorial
*     CSharp Communication Tutorial
*     C# Ado.Net Tutorial and Source Code
*     C# ADO.NET data Providers Tutorial
*     C# Dataset Tutorial
*     C# DataAdapater Tutorial
*     Csharp DataView Tutorial
*     Csharp Remoting Tutorial
*     C# XML Tutorial
*     C# DataGridView Tutorial
   Home      VB.NET      C#
More Source Code :   
Mail to :  feedback@net-informations.com
  |  Home   |  VB.NET   |  C#   |  SiteMap   |  Terms of Use   |  About   |
net-informations.com (C) 2010
All Rights Reserved. All other trademarks are property of their respective owners.