通过 vs工具中的 Visual Studio 命令提示(2010)
打开并编译文件:
测试文件hello .cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace hello
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("hello");
Console.ReadKey();
}
}
}
编译命令:
csc hello.cs //编译
hello //执行