Kinook Software Forums

Go Back   Kinook Software Forums > Visual Build Professional > [VBP] Third Party Tools

Thread Tools Rate Thread Display Modes
Old 03-06-2008, 12:01 PM
DuncanL DuncanL is offline
Registered User
Join Date: 07-26-2007
Posts: 29
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:
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?
Reply With Quote
Old 03-06-2008, 12:12 PM
kinook kinook is online now
Join Date: 03-06-2001
Location: Colorado
Posts: 5,838
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 "<non-0> Error(s)" was found.
Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

All times are GMT -5. The time now is 08:59 PM.

Copyright 1999-2021 Kinook Software, Inc.