在C#中我们可以用Application.ExecutablePath来获得程序路径

在WPF中Application这个类没有ExecutablePath

我们可以这样用

using System.Reflection;

Assembly.GetExecutingAssembly().Location;

相关文章:

  • 2022-02-08
  • 2021-08-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-24
  • 2022-01-14
  • 2021-07-31
猜你喜欢
  • 2021-06-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案