Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to stop BuildScript when there is any error in any project.

How to stop BuildScript when there is any error in any project.

Scheduled Pinned Locked Moved C / C++ / MFC
helptoolstutorial
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Pavan_Putra
    wrote on last edited by
    #1

    Hi All, I m building my solutions through command line (devenv.exe). But the problem is that if build for any project gets failed the script keep running and dosen't stop.How is it possible that i can stop the build file as soon as any error in any project or solution occurs. Thanx a lot in advance.

    It's not enough to be the best, when you have capability to be great....

    T L 2 Replies Last reply
    0
    • P Pavan_Putra

      Hi All, I m building my solutions through command line (devenv.exe). But the problem is that if build for any project gets failed the script keep running and dosen't stop.How is it possible that i can stop the build file as soon as any error in any project or solution occurs. Thanx a lot in advance.

      It's not enough to be the best, when you have capability to be great....

      T Offline
      T Offline
      tyftyftyf
      wrote on last edited by
      #2

      When building, you may use Ctrl+Break to stop it. If you are building using a command line(console), Ctrl+C :)

      P 1 Reply Last reply
      0
      • T tyftyftyf

        When building, you may use Ctrl+Break to stop it. If you are building using a command line(console), Ctrl+C :)

        P Offline
        P Offline
        Pavan_Putra
        wrote on last edited by
        #3

        I m not going to sit and watch are there any error every time (since it's used for continuous integration ) i want something that should stop on it's own.

        It's not enough to be the best, when you have capability to be great....

        1 Reply Last reply
        0
        • P Pavan_Putra

          Hi All, I m building my solutions through command line (devenv.exe). But the problem is that if build for any project gets failed the script keep running and dosen't stop.How is it possible that i can stop the build file as soon as any error in any project or solution occurs. Thanx a lot in advance.

          It's not enough to be the best, when you have capability to be great....

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Pavan_Putra wrote:

          How is it possible that i can stop the build file as soon as any error in any project or solution occurs.

          Is there such an option on devenv? What does the documentation say?

          P 1 Reply Last reply
          0
          • L Lost User

            Pavan_Putra wrote:

            How is it possible that i can stop the build file as soon as any error in any project or solution occurs.

            Is there such an option on devenv? What does the documentation say?

            P Offline
            P Offline
            Pavan_Putra
            wrote on last edited by
            #5

            No they don't even talk about it.I had already gone through the documentation and other options there is no such option. I think there is only one option that you can use, "/Out" parameter to save build log and later check if there were any errors in your build. I have used the same as there is no option remaining any more.

            It's not enough to be the best, when you have capability to be great....

            L 1 Reply Last reply
            0
            • P Pavan_Putra

              No they don't even talk about it.I had already gone through the documentation and other options there is no such option. I think there is only one option that you can use, "/Out" parameter to save build log and later check if there were any errors in your build. I have used the same as there is no option remaining any more.

              It's not enough to be the best, when you have capability to be great....

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              Pavan_Putra wrote:

              I had already gone through the documentation and other options there is no such option.

              That seems like your answer then. In my experience most of the autogenerated scripts in VS run to completion while logging errors, allowing you to review all the errors at the end of the build.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups