Code Analysis Policy Errors

The following errors occur if the code analysis policy is not satisfied at check-in:

The Code Analysis policy failed. There are errors in project {0} or the build is not up to date.

Either the build contains errors or the errors were fixed, but code analysis was not performed after the fix.

Check-in failed. The Code Analysis Policy requires that you check in through Visual Studio with an open solution.

The code analysis policy requires that all files being checked in must be in the currently open solution. To correct this error, open the solution that contains the file to be checked in.

Not all files in the pending check-in are within the currently open solution.

The code analysis policy requires that all files being checked in must be in the currently open solution. This error is raised when there is an open solution, but some files in the "pending check in" view are not part of the currently opened solution. To correct this error, open the solution that contains the file to be checked in.

The version of '{0}' is not correct. The strong-name specified in the policy is '{1}'.

This error applies to .NET projects. A rule .dll required by the code analysis policy exists on the local computer, but the version/public key does not match. To correct this error, the policy creator must update the .dlls in C:\Program Files\Microsoft Visual Studio 8\Team Tools\Static Analysis Tools\FxCop\Rules\ directory on their computer.

'{0}' assembly specified in the policy does not exist.

This error applies to .NET projects. A rule required by the code analysis policy does not have the corresponding dll installed on the client computer. To correct this error, the policy creator must update the dll in C:\Program Files\Microsoft Visual Studio 8\Team Tools\Static Analysis Tools\FxCop\Rules\ directory on their computer.

Project {0} rule settings are not in conformance with Code Analysis policy.

This error applies to .NET projects. The managed code rules settings are not as strict as the policy requires. To correct this error, the client setting must be the same or stricter than the policy requirement on the server.

Code Analysis is not enabled on active configuration. Switch to configuration {0} and build project {1} before checking in.

In Visual Studio, the active configuration does not have code analysis enabled, but there is at least one code analysis enabled.

You must enable Code Analysis for managed binaries in project {0} properties and build before checking in.

This error applies to Visual C++ .NET applications. The policy requires managed code analysis to be performed, but it is not enabled in the current project on the client.

You must enable Code Analysis in project {0} properties and build before checking in.

This error applied to Visual Studio projects and Web projects. The policy requires managed code analysis to be performed, but it is not enabled in the current project on the client.

You must enable C/C++ Code Analysis in project {0} properties and build before checking in.

This error applies to unmanaged projects. The code analysis policy requires Code Analysis for C/C++, but it is not enabled in the current project on the client.

Evaluation of Code Analysis Policy requires Visual Studio Team System 2008 Development Edition or Visual Studio Team System 2008 Team Suite to be installed.

To evaluate code analysis policy, either Visual Studio Application Lifecycle Management 2008 Development Edition or Visual Studio 2008 Team Suite must be installed. Code analysis components must be installed from Visual Studio 2008 Development Edition or Visual Studio 2008 Team Suite during setup.

See Also

Other Resources

Code Analysis Application Errors