.NET 提供了得到系统文件夹的方法,如System.Environment.SystemDirectory等,但是,.NET Framework 的安装文件夹可以通过下面的方法得到,但是需要注意,此方法得到的只是当前运行程序使用的版本,要得到其它安装版本的路径,还需要自己再组合或者查询注册表:

System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory()

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-12
  • 2022-12-23
  • 2021-08-05
  • 2021-10-24
  • 2021-07-27
猜你喜欢
  • 2022-12-23
  • 2021-09-05
  • 2021-07-18
  • 2021-06-07
  • 2021-07-03
  • 2022-12-23
  • 2021-08-21
相关资源
相似解决方案