i´m working on an addin for VS 2012..
The problem is, i need to find out the current SolutionPath to put a file in the current solution..
How can i do this?
Thx!
A few options:
Using EnvDTE.Solution
, get the FullName
of the Solution
Using IVsSolution
, call GetProperty
to get the VSPROPID_SolutionFileName
(or VSPROPID_SolutionDirectory
if you want the directory)
Get the MSBuild project for the Solution and get the $(SolutionDir)
property.