Visual Studio Macro to list Projects instead of solution folders -


Using the following code gives me the solution folders instead of the actual projects.

  projectName = DTE for each project for Dolution.Success.Projects (0). Project.UniqueName = projectName then finish the project if the next   

Can I actually loop through the actual project nodes?

I am trying to read the properties from the startup project.

I have never written any visual studio macros, but it can be what you want Are there.

  projectName = DTE.Solution.SolutionBuild.StartupProjects (0) DTE for each project. If projects (project.ConfigurationManager IsNot is nothing) then 'this is a project! If (project.UniqueName = projectName) then return the project again (if project.ProjectItems IsNot is nothing) then for each project item in the project. If ProjectItems (projectItem.SubProject IsNot is nothing) then 'TODO: End of Absorption at ProjectItem.SubProject if the next ending end if next   

I left a' Tudo 'there because you actually You will need to drag it into a function that you can call again if you have nested (sub) projects.

I have found this solution, and when it is Visual Studio 2005-era material, it can move you in the right direction.

Comments