C# Complier and Run Without Visual Studio
If you don't have any file.cs To do this below.
Open Notepad
1. Put this code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Chapter1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("This is my First C# Program");
Console.ReadLine();
}
}
}
2. Save with "Chapter1.cs"
==============================================
Open Visual Studio Command Prompt.
0. cd yourFolder ie. cd C:\Users\Documents\Training
1. Complier> "csc Chapter1.cs"
2. Run> "Chapter1"
Output!!
This is my First C# Program
This is my First C# Program
ไม่มีความคิดเห็น:
แสดงความคิดเห็น