I am writing a VS addin where it will load some file from the solution the addin is running in. I am wondering how to get the relative path to the solution.
For instance, I have the application written in : C:\Users\XXXXX\Documents\Visual Studio 2013\Addins
When I am running the addin in this solution : D:\dev1\src\
the relative path should be : D:\dev1\src\
But when I am running the addin in another solution: D:\dev2\src\
the relative path will change as well.
How can get the path? Thanks.