Did you know there is a managed code analysis tool in VS 2005?
Well, now you do. The managed code analysis tool can warn you when your code does not follow a set of good practices.
For those of you that are familiar with FxCop, the managed code analysis tool in VS 2005 serves the same purpose.
On your managed project in VS 2005, you can right click on the project, then click on Properties and then on the Code Analysis Tab.Then make sure to “check” the Enable Code Analysis checkbox. You may also select which rules you want to be run on your code.
After you enable code analysis, next time you build your code you will see many warnings related to the rules that you enabled.
Even though fixing the code analysis warnings may seem like a burden, it may actually increase your productivity and the usability of your managed assembly. For an in-depth explanation of the warnings you may get, you can visit http://msdn2.microsoft.com/en-us/library/ee1hzekz.aspx.
I hope you find this helpful.