How to get Current Project Directory path using C#

后端 未结 9 819
旧巷少年郎
旧巷少年郎 2020-12-31 08:19

okay, here is the question. I have two projects one is C# Console and other is Class library. I am accessing/calling Class library method from the console app. There is a fo

9条回答
  •  旧巷少年郎
    2020-12-31 08:44

    I hope I understand u corretly:

    Path.GetDirectoryName(typeof(Foo.MyFooClass).Assembly.Location);
    

提交回复
热议问题