How to avoid rebuilding if nothing has changed
-
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
-
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
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
-
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
-
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?
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
-
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
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!!!