Only 32 out of 34 projects in solution actually build

I've added a "Build VS.Net Solution". The solution contains 34 projects, but only 32 of those build when the action runs. Configuration manager in VS2010 appears ok to buld all projects win32. On the properties of the action I've chosen to build "Selected Projects", then in the script editor on the action I have

Action.SelectedProjects.Clear()
Action.SelectedProjects.Add("%CfgSolutionName%")

Where CfgSolutionName refers to the name of the solution with a project inside of the same name, this runs ok with other solutions. Of course in Visual Studio, the compining goes fine, and all 34 projects build correctly.

Any hints or ideas?

Action.SelectedProjects is designed to hold references to projects, not solutions. I’m not sure what you are trying to achieve with the scripting, but if you want to change which solution file is built at runtime, then set the solution field to the variable.