Reputation: 3114
I am developing a Visual Studio Addin using C#. I want to determine the location on file system of a solution or a project whichever is loaded in Visual Studio, using my Addin that is also loaded.
Please suggest as how i can do this? pointer to any resource will be helpful.
Thanks
Steve
Upvotes: 0
Views: 591
Reputation: 399
Using the GetDirectoryName function in the System.IO.Path namespace should get you what you need.
public String SolutionPath()
{
return Path.GetDirectoryName(_applicationObject.Solution.FullName);
}
This was also answered here... Visual studio addin - finding current solution folder path
Upvotes: 1