views:

53

answers:

2

I'm using Visual Studio 2008 Team System 2008 Team Edition.

I want to be able to build my project and actually be told about all errors in the build. So far I have not found a way, so it must be pretty well hidden.

  • The normal "Rebuild" command for a project, as well as the "Rebuild solution" command for a solution, rebuilds only the active configuration (Debug or Release), never both.
  • Using the Batch Build dialog, as recommended in an answer to an earlier question I posed about the same problem, does not output any errors in the Error Window as I would have expected and just silently continues with the batch build instead of stopping as I would have expected. I had a compile error in my code for weeks without noticing because of this!

How do I get Visual Studio to build both configurations (if both compile) AND output error messages (if either one doesn't compile)?

A: 

May be you have to adjust error reporting level? In the GUI, right-click on project, choose Properties, then General->Warning Level (which is set per configuration BTW).

Ashalynd
I think the question asks about error messages which don't show up at all, whereas General->Warning Level can only turn warnings into errors, not the other way around.
romkyns
Actually it´s pretty strange that errors don´t show up. I just ran a batch build myself in VS 2008 for the situation when one configuration could build and another couldn´t and saw the complete build output for both (in the output window).
Ashalynd
+1  A: 

You can't (at least not in VS 2008, any edition).

Timwi