阅读背景:

获取csc.exe路径

来源:互联网 
using System.Runtime.InteropServices;
var frameworkPath = RuntimeEnvironment.GetRuntimeDirectory();
var cscPath = Path.Combine(frameworkPath, "csc.exe");

Console.WriteLine(frameworkPath);  // C:\Windows\Microsoft.NET\Framework\v4.0.30319
Console.WriteLine(cscPath); }      // C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exeusing System.Runtime.InteropServices;
var frame



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: