วันจันทร์ที่ 6 มีนาคม พ.ศ. 2560

C# Complier and Run Without Visual Studio

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

ไม่มีความคิดเห็น:

แสดงความคิดเห็น

Nunit3 Running on command line

Nunit3 Running on command line Prepare... 1. Download & install "Nunit3-console.msi or Nunit3-console.zip"  Run... 2....