How do I programmatically list all of the projects in a solution? I\'ll take a script, command-line, or API calls.
You can use the EnvDTE.Solution.Projects object to programmatically get access to the projects in a solution.
One gotcha though is that if you have any SolutionFolders in your solution, any projects in these folders are not shown in the above collection.
I've written an article including a code sample on how to get all projects regardless of any solutionfolders