Visual studio missing warnings

Does anyone find when you open a specific solution (containing several projects) and compile that you don’t see any warnings that your colleagues see when compiling the same solution in the same state? The code is the same.

I rely heavily on warnings as a shortcut for finding unused methods, etc. But during compilation, I get nothing ... just a couple based on links to user controls, etc.

+7
c # visual-studio visual-studio-2010 warnings
source share
2 answers

Just guessing here ... When you first build a solution, it should compile everything. In this case, all warnings appear. If you run the assembly a second time, it will only compile what has changed, using previously compiled (cached) assemblies when possible. In this case, code that does not compile does not display a warning. If you want to view all warnings again, go to the "Reconstruction from the assembly" menu, which will force all code to recompile and thereby display warnings.

+9
source share

Perhaps your warning level for your compiler is not as strict as your colleagues: http://msdn.microsoft.com/en-us/library/13b90fz7%28VS.71%29.aspx

+2
source share

All Articles