.NET_CSC_calc

enter description here

视频演示

1
c:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe demon.cs

enter description here

1
2
3
4
5
6
7
8
9
10
11
using System;
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
System.Diagnostics.Process.Start("calc.exe");
}
}
}

enter description here

enter description here

https://docs.microsoft.com/zh-cn/dotnet/csharp/language-reference/compiler-options/command-line-building-with-csc-exe