Is there an automatic re-build in VisualStudio when I change the source code ?

P

Peter Hofmann

When I change the source code and save it I have currently always to press
explicitely F6 zu "compile" the code (and get new error list).

Isn't there an automatic build function which is called whenever I save new code ?

BTW: What is the difference between the two menues:

Build->Build solution

and

Build->Rebuild solution ?

Peter
 
C

Christof Nordiek

Peter Hofmann said:
When I change the source code and save it I have currently always to press
explicitely F6 zu "compile" the code (and get new error list).

Isn't there an automatic build function which is called whenever I save
new code ?


You can simply press F6 or Shift+F6. That will aswell save as also compile
(the whole solution or only the current project.)
BTW: What is the difference between the two menues:

Build->Build solution

and

Build->Rebuild solution ?

Rebuild solution always builds all project; Build solution builds only
projects that wree changed and their dependencies.
Rebuild can be used in cases, where the detection of changes failed. Don't
know, if that occurs in VS 2005, but it happend to me in VS.NET and VS
2003.NET

Christof
 
P

Peter Duniho

[...]
Rebuild can be used in cases, where the detection of changes failed.
Don't
know, if that occurs in VS 2005, but it happend to me in VS.NET and VS
2003.NET

Yup, it still happens sometimes in VS 2005. Frankly, I have a hard time
understanding why the bug even exists, but yes...almost at least once a
day, I manage to change code without VS 2005 noticing and I have to use
the Rebuild command to get it to recompile (simply making another change
and trying Build again doesn't work).

:(

Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top