Search code examples
c#visual-studiovspackage

How to get current solution configuration in vspackage?


I'm making Visual Studio package, and I need to know opened solution name and configuration. How can I get this information ?


Solution

  • If you have a reference to EnvDTE, you can use dte.Solution and dte.Solution.SolutionBuild.ActiveConfiguration.