|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
How to: Migrate Code Analysis Check-in Policy
You can enable code analysis as part of the check-in policy to control and improve the quality of the code that is checked into the code base. After the policy is specified, team members can synchronize their solution against the server policy settings. The ability to migrate settings allows you to stay synchronized with the settings on the server.
Migrating policy setting will change your active project configuration. You should consider creating a separate configuration for check-ins; after creating a new configuration, migrate server settings. Check-in policy applies at the project level.
This feature is only available if you are using Team Foundation Server.
To migrate code analysis check-in policy
In Solution Explorer, right-click the solution and then click Migrate Code Analysis Policy Settings to Solution.
Code analysis settings are applied to each project in the solution.