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!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A few options:
Using
EnvDTE.Solution, get theFullNameof the SolutionUsing
IVsSolution, callGetPropertyto get theVSPROPID_SolutionFileName(orVSPROPID_SolutionDirectoryif you want the directory)Get the MSBuild project for the Solution and get the
$(SolutionDir)property.