Hi,
We are in process of moving a large code base from Visual Studio 2008 to Visual Studio 2010. There are numerous solutions each with tens of projects. After migrating the projects, I see that the new projects have successfully created ruleset from the code
analysis options selected in the original project. However, I am seeing a lot of Code Analysis errors for the same rules, which seemed to work well in the original project.
Some of the most common CA errors I am seeing in the new projects are
CA2000 : Microsoft.Reliablity - In method "<methodname", object <objectName> is not disposed off in all exception paths.
CA1062: Microsoft.Design - In externally visible method, validate parameters before using it.
There are tens of other errrors like these.
We have a mature code base with all the unit tests working and cannot take the hit of resolving all these projects across solutions.
I want to know if Visual Studio has changed the logic on how these rules are calculated because the same rules pass in the original project. Also, is there is any way we can move retain the rules without actually breaking the project?
Thanks for your help.
Hamid