Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 109929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T02:08:49+00:00 2026-05-11T02:08:49+00:00

My automated build process uses a command-line to build something like this: devenv.exe myproj.sln

  • 0

My automated build process uses a command-line to build something like this:

devenv.exe myproj.sln /build release 

It is a very long build-process which integrates components made by a team of developers. It takes about half an hour to run in release mode. Usually if one thing goes wrong then plenty of other dependancies will go wrong, so I occasionally get a message like:

---------------------- Done ---------------------- Rebuild All: 18 succeeded, 6 failed, 0 skipped 

Actually I want the build to abort as soon as the first error is found. If there are any errors at all the build has failed. I need to know this as soon as possible and not wait to see all the other stuff fail.

Is there a way to change the build-process so that instead of running through the whole thing it dies as soon as something goes wrong?

I’m using Visual Studio .Net 2003 (yes I know it’s old).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T02:08:49+00:00Added an answer on May 11, 2026 at 2:08 am

    I use the following macro in Visual Studio 2005 to do this, but it should also work in 2003. Add this to the EnvironmentEvents module in the Macros IDE:

        Private Sub BuildEvents_OnBuildProjConfigDone(ByVal Project As String, ByVal ProjectConfig As String, ByVal Platform As String, ByVal SolutionConfig As String, ByVal Success As Boolean) Handles BuildEvents.OnBuildProjConfigDone         If Success = False Then             DTE.ExecuteCommand('Build.Cancel')         End If     End Sub 

    This will cause the build to cancel when any single project fails to build.

    This page has further details on the macros involved.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'd like to use PowerShell as part of our automated build process to update
I have an automated build process that I'd like to extend so I can
We would like to have our TFS automated CI build and test process use
This is the error that is thrown by our automated build suite on Windows
I have an automated build process which compiles a iPhone app using a combination
We're transitioning to an automated build process for our iphone projects. These projects can
Here's my problem: we have an automated build process for our product. During the
How would you manage the lifecycle and automated build process when some of the
I'm trying to incorporate some JavaScript unit testing into my automated build process. Currently
We have an automated build process via TFS, TFS database projects, and vsdbcmd. When

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.