||Carlos J. Quintero (Microsoft MVP)
||Microsoft Visual Studio 2005
||Microsoft Visual Studio 2008
This article explains a bug in the EnvDTE.SolutionBuild.Build method of the automation
model when trying to build a solution programatically.
The EnvDTE.SolutionBuild.Build method only builds the startup project of the solution,
not all the projects.
Steps to reproduce the problem:
- Create a macro with the following code:
- Create a solution with two projects and run the macro. The Output window shows
that only one project was build. This problem did not happen in Visual Studio .NET
As a workaround, you can iterate the projects of the solution can call SolutionBuild.BuildProject.
Go to the 'Visual Studio Extensibility (VSX)' web site for more articles like this (Articles section)