Project DescriptionSPDisposeCheck Static Analysis Ruleset allows SharePoint architects and developers to ensure SharePoint APIs are properly disposed using static analysis. It supports both VS2008 and VS2010 projects.
Requires the SPDisposeCheck.exe utilityThe install can be downloaded here
http://download.microsoft.com/download/B/4/D/B4D279A0-E159-40BF-A5E8-F49ABDBE95C7/SPDisposeCheck.msiSetup Steps
- Copy SPDisposeCheckRules.dll to local static analysis rules folder example: C:\Program Files\Microsoft Visual Studio 9.0\Team Tools\Static Analysis Tools\FxCop\Rules
- Copy SPDisposeCheck.exe to local static analysis rules folder
- please ensure that you right click on the two files and select Properties and ensure the files are "Unblocked" otherwise they will not show up in the Code Analysis Ruleset editor as an option
New SPDisposeCheck Rules will be available for SharePoint projects in Project Properties>Code Analysis