更新时间:2022-11-03 12:55:02
如果您安装了 .NET v4(因此如果您有更新的 Windows 或应用了 Windows 更新)
If you have .NET v4 installed (so if you have a newer windows or if you apply the windows updates)
C:WindowsMicrosoft.NETFrameworkv4.0.30319csc.exe somefile.cs
或
C:WindowsMicrosoft.NETFrameworkv4.0.30319msbuild.exe nomefile.sln
或
C:WindowsMicrosoft.NETFrameworkv4.0.30319msbuild.exe nomefile.csproj
如果您安装了 .NET,很可能会设置 %FrameworkDir%
变量,因此:
It's highly probable that if you have .NET installed, the %FrameworkDir%
variable is set, so:
%FrameworkDir%v4.0.30319csc.exe ...
%FrameworkDir%v4.0.30319msbuild.exe ...