Kinook Software Forums

Kinook Software Forums (http://www.kinook.com/Forum/index.php)
-   [VBP] Third Party Tools (http://www.kinook.com/Forum/forumdisplay.php?f=3)
-   -   VS 2005 step "complete" with error (http://www.kinook.com/Forum/showthread.php?t=3501)

DuncanL 03-06-2008 11:01 AM

VS 2005 step "complete" with error
 
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:
Quote:

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 11:12 AM

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 and fail the step if " Error(s)" was found.


All times are GMT -5. The time now is 05:53 AM.


Copyright 1999-2019 Kinook Software, Inc.