I have an add-in loaded, and a solution loaded, how would I find the folder path of that solution programmatically in C# in my addin?
+5
A:
Alas I figured it out after a lot of goooogling!!
In connect.cs:
public String SolutionPath()
{
return Path.GetDirectoryName(_applicationObject.Solution.FullName);
}
Tom J Nowell
2009-03-11 11:04:29
A:
The Solution.FullName answer is correct, but take care, you cannot access it until the OnStartupCompleted method is called in connect.cs.
Jesper
2010-06-04 23:10:42