doc.Load(Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) +"\\"+xmlpath);

System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase ;  获取当前路径

Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) 获取当前路径的目录

 

相关文章:

  • 2021-09-08
  • 2021-10-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-20
  • 2022-01-13
  • 2021-10-28
  • 2021-06-22
  • 2021-08-01
  • 2022-12-23
相关资源
相似解决方案