WPF获取程序当前运行的目录路径:
AppDomain.CurrentDomain.BaseDirectory
//当前路径
var path=AppDomain.CurrentDomain.BaseDirectory
这篇文档对您是否有帮助?