# Way to get deployment file directory during runtime?

I've tried using Directory.GetCurrentDirectory() but it returns
"D:\...\...\deploy\CounterPublisher" instead of the project. How can I reliably find the deploy directory of the running project during runtime?

Thank you

• Sometimes it will be .../deploy/MyProject and sometimes it will be .../deploy/CounterPublisher
I just need a good anchor point to find the project directory
• mod
Hi, @Dafeesh
it is not really clear what are you trying to do.
but let me guess - you may use ApplicationBase.BinaryPath, ApplicationRootPath, ApplicationPath

hope this helps

best,
ilya
• Ah yes, perfect. Thanks!