Using the following code gives me Solution folders instead of real projects.
projectName = DTE.Solution.SolutionBuild.StartupProjects(0)
For Each project In DTE.Solution.Projects
If project.UniqueName = projectName Then
Return project
End If
Next
Is there way I can loop through actual Project nodes?
I’m trying to read properties from the startup project.
I’ve never written any Visual Studio macros, but this may be what you are looking for.
I left a ‘TODO in there, because you would need to actually pull this out into a function that you could recursively call if you are looking to deal with nested (sub) projects.
I got this solution from this link, and while it’s Visual Studio 2005-era material, it might get you going in the right direction.