How do I list all the projects in the current solution using EnvDTE?
问题 I've been following MSDN's Hello World guide to developing Visual Studio extensions (this article specifically deals with creating one as a Visual Studio toolbar command). I am trying to list all projects contained in the current/active solution. In the auto generated code for the Command template. I have tried EnvDTE 's Solution 's Projects property, but it shows zero projects. There is a ActiveSolutionProjects property as well, but it also shows an empty array. How is this achieved ? P.S.: