2.0: Build vs Rebuild

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • RAM

    2.0: Build vs Rebuild

    Hello,
    I am learning .NET 2.0, Visual ... 2005 Express Edition. Could you explain
    me please the difference betwen Build and Rebuild commands? Thank you.
    /RAM/


  • William DePalo [MVP VC++]

    #2
    Re: Build vs Rebuild

    "RAM" <r_ahimsa_m@poc zta.onet.plwrot e in message
    news:uFz1nAP6GH A.4112@TK2MSFTN GP04.phx.gbl...
    I am learning .NET 2.0, Visual ... 2005 Express Edition. Could you explain
    me please the difference betwen Build and Rebuild commands?
    A build causes compilation of the files which have changed. A rebuild causes
    the compilation of everything.

    Regards,
    Will


    Comment

    • Cowboy \(Gregory A. Beamer\)

      #3
      Re: Build vs Rebuild

      Build will only compile files that have changed. This is not always true,
      but it is a good rule of thumb. Rebuild will force a recompile of all of the
      files. Rebuild is useful after a number of builds to reduce the size of the
      files and ensure all pieces are working together. Even the best compiler
      gets a build wrong every once in a while.

      --
      Gregory A. Beamer
      MVP; MCP: +I, SE, SD, DBA


      *************** *************** *************** ****
      Think outside of the box!
      *************** *************** *************** ****
      "RAM" <r_ahimsa_m@poc zta.onet.plwrot e in message
      news:uFz1nAP6GH A.4112@TK2MSFTN GP04.phx.gbl...
      Hello,
      I am learning .NET 2.0, Visual ... 2005 Express Edition. Could you explain
      me please the difference betwen Build and Rebuild commands? Thank you.
      /RAM/
      >

      Comment

      • Kevin Spencer

        #4
        Re: Build vs Rebuild

        Build will only compile files that have changed. This is not always true,
        but it is a good rule of thumb. Rebuild will force a recompile of all of
        the files.
        I thought this was true for a long time, but I was unsure, so I researched
        it. In fact, both Build and Rebuild will build all projects that are
        specified as "Build" according to the Solution configuration. Rebuild
        performs a Clean operation prior to the build, using the Solution
        configuration. The Clean operation deletes all intermediate
        compiler-generated and output files from the project/solution. The Clean
        operation can also be performed separately.

        Here are a couple of references from microsoft.com:




        --
        HTH,

        Kevin Spencer
        Microsoft MVP
        Computer Control Freak
        Thoughts and Ideas about programming, philosophy, science, arts, life, God, and related subjects.


        A man, a plan, a canal, a palindrome that has.. oh, never mind.

        "Cowboy (Gregory A. Beamer)" <NoSpamMgbworld @comcast.netNoS pamMwrote in
        message news:uBEj9Gn6GH A.1248@TK2MSFTN GP03.phx.gbl...
        Build will only compile files that have changed. This is not always true,
        but it is a good rule of thumb. Rebuild will force a recompile of all of
        the files. Rebuild is useful after a number of builds to reduce the size
        of the files and ensure all pieces are working together. Even the best
        compiler gets a build wrong every once in a while.
        >
        --
        Gregory A. Beamer
        MVP; MCP: +I, SE, SD, DBA

        >
        *************** *************** *************** ****
        Think outside of the box!
        *************** *************** *************** ****
        "RAM" <r_ahimsa_m@poc zta.onet.plwrot e in message
        news:uFz1nAP6GH A.4112@TK2MSFTN GP04.phx.gbl...
        >Hello,
        >I am learning .NET 2.0, Visual ... 2005 Express Edition. Could you
        >explain me please the difference betwen Build and Rebuild commands? Thank
        >you.
        >/RAM/
        >>
        >
        >

        Comment

        • Cor Ligthert [MVP]

          #5
          Re: Build vs Rebuild

          Thanks guys,

          I have never bothered me about this.

          But it is interesting to know.

          Cor

          "Kevin Spencer" <uce@ftc.govsch reef in bericht
          news:eOevf5t6GH A.1012@TK2MSFTN GP05.phx.gbl...
          >Build will only compile files that have changed. This is not always true,
          >but it is a good rule of thumb. Rebuild will force a recompile of all of
          >the files.
          >
          I thought this was true for a long time, but I was unsure, so I researched
          it. In fact, both Build and Rebuild will build all projects that are
          specified as "Build" according to the Solution configuration. Rebuild
          performs a Clean operation prior to the build, using the Solution
          configuration. The Clean operation deletes all intermediate
          compiler-generated and output files from the project/solution. The Clean
          operation can also be performed separately.
          >
          Here are a couple of references from microsoft.com:
          >


          >
          --
          HTH,
          >
          Kevin Spencer
          Microsoft MVP
          Computer Control Freak
          Thoughts and Ideas about programming, philosophy, science, arts, life, God, and related subjects.

          >
          A man, a plan, a canal, a palindrome that has.. oh, never mind.
          >
          "Cowboy (Gregory A. Beamer)" <NoSpamMgbworld @comcast.netNoS pamMwrote in
          message news:uBEj9Gn6GH A.1248@TK2MSFTN GP03.phx.gbl...
          >Build will only compile files that have changed. This is not always true,
          >but it is a good rule of thumb. Rebuild will force a recompile of all of
          >the files. Rebuild is useful after a number of builds to reduce the size
          >of the files and ensure all pieces are working together. Even the best
          >compiler gets a build wrong every once in a while.
          >>
          >--
          >Gregory A. Beamer
          >MVP; MCP: +I, SE, SD, DBA
          >http://gregorybeamer.spaces.live.com
          >>
          >************** *************** *************** *****
          >Think outside of the box!
          >************** *************** *************** *****
          >"RAM" <r_ahimsa_m@poc zta.onet.plwrot e in message
          >news:uFz1nAP6G HA.4112@TK2MSFT NGP04.phx.gbl.. .
          >>Hello,
          >>I am learning .NET 2.0, Visual ... 2005 Express Edition. Could you
          >>explain me please the difference betwen Build and Rebuild commands?
          >>Thank you.
          >>/RAM/
          >>>
          >>
          >>
          >
          >

          Comment

          Working...