Kirti Deshpande

Kirti Deshpande

  • 2k
  • 79
  • 4.8k

How to get Path where output exe located

Jan 17 2022 9:29 AM


I need to get the path where the output exe located.

After Build,my Output dll is dummped into the location C:/Test1/Test2/Test3.

I also set this Path in Build/Output Path

Now there is one test.xml file  I copied at same location Through Post Build event.

Now I want to Path of this file In my code (Like C:/Test1/Test2/Test3/test.xml ).but i dont  want Hrad coded path

Is there any way to featch this path?


Thank you.

Answers (3)