现在的位置: 首页 > 综合 > 正文

c# 文件的编译

2013年11月10日 ⁄ 综合 ⁄ 共 269字 ⁄ 字号 评论关闭

 通过 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      //执行

抱歉!评论已关闭.