What's the best way to get the directory from which an assembly is executing

前端 未结 7 1374
说谎
说谎 2020-12-08 21:40

For my apps, I store some configuration file in xml along with the assembly(exe), and something other temporary files for proccessing purpose.

I found some quirk w

相关标签:
7条回答
  • 2020-12-08 22:21

    There is also,

    System.Reflection.Assembly.GetExecutingAssembly().CodeBase
    
    0 讨论(0)
提交回复
热议问题