using System;
class Test
{
public static void Main(String[] args)
{
Console.WriteLine("Hello, Mr.Tree!");
}
}
在该目录下执行命令
D:\Test>C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe CallCmd.cs
Microsoft (R) Visual C# Compiler version 4.8.3752.0
for C# 5
Copyright (C) Microsoft Corporation. All rights reserved.
This compiler is provided as part of the Microsoft (R) .NET Framework, but only supports language versions up to C# 5, which is no longer the latest version. For compilers that support newer versions of the C# programming language, see http://go.microsoft.com/fwlink/?LinkID=533240