views:

168

answers:

3

Using VB 2008 When I press the F5 or Start Debugging it does a rebuild even when I have made no changes since the last time. Where is the setting to tell it to only do a rebuild if there are changes?

A: 

F5 should a build and not rebuild, are you sure it's a rebuild? Even you do not make any changes, a 'pseudo' build is still executed, and should be significant faster than a normal build or rebuild.

EDIT:
My definition of a 'pseudo' build is to check for need to build and/or making sure all files required for debugging are present (e.g. pdb files)

o.k.w
A: 

In my installation, F5 (Start Debugging) only builds when changes have been made. This includes changes that don't actually effect the code (like modifying comments). If I do F5, close the program, and push F5 again (without changing anything), no rebuild takes place. Is there something I'm missing?

David Johnstone
When I press F5 it says Build Started even if I just pressed it a second ago and no new changes have been made since. In the past this used to happen until I found a setting that changed this so that it only does a Build when something has changed. But now it seems to have reverted, maybe I changed that setting. But problem is that I don't remember where/what that setting be.
bochur1
A: 

As other have mentioned, Visual Studio only rebuilds what it thinks needs rebuilding.

My advice is to check what it actually builds, to see what made the build system think it was out-of-date. I've often seen this issue when, e.g., a custom build step was used, and the output of the step was specificed incorrectly. So VS is expecting a built file (because you told it it would be there), and since the built file is not there, it restarts that specific build step, along with all the projects that depend on the project containing the build step.

This is just one example. It usually boils down to an expected generated file that gets moved or is missing.

If this does not help, maybe a build log would help identifying your issue in more depth.

Bahbar
Where do I find the Build log?
bochur1
for VB, I'm not sure. For some reason, I did not notice the first time it was VB and not VC. Sorry
Bahbar