在C#中我们可以用Application.ExecutablePath来获得程序路径
在WPF中Application这个类没有ExecutablePath
我们可以这样用
using System.Reflection; Assembly.GetExecutingAssembly().Location;
在C#中我们可以用Application.ExecutablePath来获得程序路径
在WPF中Application这个类没有ExecutablePath
我们可以这样用
using System.Reflection; Assembly.GetExecutingAssembly().Location;
转载于:https://www.cnblogs.com/zhengwen/archive/2012/09/20/2695673.html