PDA

View Full Version : VS 2005 step "complete" with error


DuncanL
03-06-2008, 12:01 PM
During a build today I noticed one of our projects build with an error. It is a Visual Studio 2005 VB .Net project and the problem was that a reference could not be resolved. The error was of the form:
Failed to create the wrapper assembly for type library "Control". Did not find a registered ActiveX control in 'Control'.
0 Warning(s)
1 Error(s)
However, VisualBuild Pro merrily treated the build as successfully completed and carried on. I just happened to see the error and stop the build.

Any ideas why that might be and what we could do to make it return an error? I assume it's a Visual Studio issue rather than VBP?

kinook
03-06-2008, 12:12 PM
The VBP Make VS.NET/2005 actions key success/failure off of the exit code of devenv/msbuild, so it appears to be returning 0 (success) here, which sounds like a (VS) bug if any project(s) failed to build.

You could try checking 'Parse build output for failed projects' on the Project/Solution, which will parse the output and fail if ", 0 failed" is not found (but this only works with devenv output and not msbuild).

Alternatively, you could parse the output in the step's vbld_StepDone script event (http://www.visualbuild.com/Manual/scriptevents.htm) and fail the step if "<non-0> Error(s)" was found.