public void how_to_convert_DTE_Solution_to_IVsSolution() { // Say you have a DTE Solution: EnvDTE.Solution dteSolution = Dte.Solution; var vsSolution = dteSolution.Adapt().AsVsSolution(); Assert.IsNotNull(dteSolution); }
public void how_to_convert_DTE_Solution_to_ISolutionNode() { // Say you have a DTE Solution: EnvDTE.Solution dteSolution = Dte.Solution; ISolutionNode solutionNode = dteSolution.Adapt().AsSolutionNode(); Assert.IsNotNull(solutionNode); // Use the solution node to get the active project, for example: IProjectNode activeProject = solutionNode.ActiveProject; }