Archive for February, 2007

Displaying all warnings…

Posted in Microsoft.NET on February 9, 2007 by vasudevan

VS.NET 2005 defaults to 200 warnings in the Error List view when a project is compiled. The VS.NET team decided with this number to improve performance of the IDE.  However, it is better to view all warnings at once to enable a developer to prioritize on fixing each of the warning.

To override the 200 warning limit, do this: Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Setup\EDev\CodeAnalysisErrorListViolationLimit and increase the number to something bigger (hex value).

It is a general practice for most of the developers to ignore all warnings and move their app to prod which I feel is not good. It is always better to fix all the warnings and the best approach is to to treat all warnings as errors and fortunately, VS.NET has a setting that can do the same. So, once this setting is enforced in VS.NET, your project will never compile successfully until all warnings are fixed.