How do I get Bin Path?

后端 未结 6 1425
时光取名叫无心
时光取名叫无心 2020-12-25 09:32

I need to the the bin path of the executing assembly. How do you get it? I have a folder Plugins in the Bin/Debug and I need to get the location

6条回答
  •  独厮守ぢ
    2020-12-25 10:02

    This is what I used to accomplish to this:

    System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, System.AppDomain.CurrentDomain.RelativeSearchPath ?? "");
    

提交回复
热议问题