1.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "RedisConfig.xml")

2.Environment.CurrentDirectory + @"\RedisConfig.xml"

第二个不靠谱,https://www.cnblogs.com/rui1236/p/5047652.html

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
  • 2021-12-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-11
  • 2022-12-23
  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
  • 2021-06-13
相关资源
相似解决方案