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. Visual Studio
  4. How to avoid rebuilding if nothing has changed

How to avoid rebuilding if nothing has changed

Scheduled Pinned Locked Moved Visual Studio
helpvisual-studiotutorial
5 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.
  • S Offline
    S Offline
    sGrabert
    wrote on last edited by
    #1

    Hello, i'm having an annoying problem with VS2008. My solution contains about 20 projects. VS does a total rebuild everytime. If I change nothing, but simply restart the application, rebuild. If i change one file of one project (normaly it would only compile/link the changed project), rebuild. The websites i've found on the net are no help (MS-Support). The projects are linked by dependencys and not by the project-linkerinput-settings. Please help :)

    modified on Tuesday, July 28, 2009 9:33 AM

    L W 2 Replies Last reply
    0
    • S sGrabert

      Hello, i'm having an annoying problem with VS2008. My solution contains about 20 projects. VS does a total rebuild everytime. If I change nothing, but simply restart the application, rebuild. If i change one file of one project (normaly it would only compile/link the changed project), rebuild. The websites i've found on the net are no help (MS-Support). The projects are linked by dependencys and not by the project-linkerinput-settings. Please help :)

      modified on Tuesday, July 28, 2009 9:33 AM

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

      A quick and ugly fix...right click your solution and choose properties. Select the Configuration Properties and you will see all 20 projects listed. There is a checkbox in the Build column. Deselect 19 of the projects and leave the project your working on. Best Wishes, -David Delaune

      S 1 Reply Last reply
      0
      • L Lost User

        A quick and ugly fix...right click your solution and choose properties. Select the Configuration Properties and you will see all 20 projects listed. There is a checkbox in the Build column. Deselect 19 of the projects and leave the project your working on. Best Wishes, -David Delaune

        S Offline
        S Offline
        sGrabert
        wrote on last edited by
        #3

        Sorry, that does not help, because of the linker-dependencies. If I remove the dependency, I get a linker error. Is there any setting, switch, or something else, that causes VS to rebuild a project even if nothing has changed?

        L 1 Reply Last reply
        0
        • S sGrabert

          Sorry, that does not help, because of the linker-dependencies. If I remove the dependency, I get a linker error. Is there any setting, switch, or something else, that causes VS to rebuild a project even if nothing has changed?

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

          sGrabert wrote:

          Sorry, that does not help, because of the linker-dependencies. If I remove the dependency, I get a linker error. Is there any setting, switch, or something else, that causes VS to rebuild a project even if nothing has changed?

          1.) I think you misunderstood me. I never said to remove the project dependencies. Unchecking the build checkbox in a C++ solution will allow the solution to link with pre-existing project LIB/OBJ files if the project has been compiled at least one time. I do it all the time. 2.) It would help if you stated what version of the compiler you are using, not all of the VS versions exibit the same behaviors. 3.) It would help if you stated what language you are developing in. C++ uses Precompiled headers[^] while .NET development does not. Best Wishes, -David Delaune

          1 Reply Last reply
          0
          • S sGrabert

            Hello, i'm having an annoying problem with VS2008. My solution contains about 20 projects. VS does a total rebuild everytime. If I change nothing, but simply restart the application, rebuild. If i change one file of one project (normaly it would only compile/link the changed project), rebuild. The websites i've found on the net are no help (MS-Support). The projects are linked by dependencys and not by the project-linkerinput-settings. Please help :)

            modified on Tuesday, July 28, 2009 9:33 AM

            W Offline
            W Offline
            wrainer
            wrote on last edited by
            #5

            I just "fixed" the same problem with my VS project. Visual Studio did always a rebuild, even if didn't change anything. Solution in my case: One cs-File had a future timestamp (Year 2015, this was my fault). I opened the file, saved it and my build problem was gone!!!

            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