获取当前FrameWork的一些信息

//Test Code

//C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config

string dd = System.Runtime.InteropServices.RuntimeEnvironment.SystemConfigurationFile;

//C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\

string ss = System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory();

//v2.0.50727

string es = System.Runtime.InteropServices.RuntimeEnvironment.GetSystemVersion();

你可能感兴趣的:(framework)