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

在WPF中Application这个类没有ExecutablePath

我们可以这样用

using System.Reflection;

Assembly.GetExecutingAssembly().Location;
转载:http://www.cnblogs.com/skystalker/archive/2012/04/15/2447915.html

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

在WPF中Application这个类没有ExecutablePath

我们可以这样用

using System.Reflection;

Assembly.GetExecutingAssembly().Location;
转载:http://www.cnblogs.com/skystalker/archive/2012/04/15/2447915.html

相关文章:

  • 2021-07-31
  • 2021-12-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-24
相关资源
相似解决方案