I want to get a project related to an add-in. But if I use the following code:
string projectDir = Directory.GetCurrentDirectory();
he returns C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\Common7\\IDE\\
How can I get the project directory of a project that uses the add-in?
source
share