Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can we correct or suppress CA0503 and CA0505 messages from Code Analysis in Visual Studio 11 Beta
    primarykey
    data
    text
    <p>When I run Code Analysis on a fairly simple project, I immediately get "CA0503 Issue Running Code Analysis" and "CA0505 Issue Running Code Analysis" violations. <a href="http://msdn.microsoft.com/query/dev11.query?appId=Dev11IDEF1&amp;l=EN-US&amp;k=k%28CA0503%29;k%28TargetFrameworkMoniker-.NETFramework,Version=v4.0%29;k%28DevLang-csharp%29&amp;rd=true" rel="nofollow">The CA0503 documentation page</a> says, "The property is deprecated. Use the superseding property." However, it does not point at a superseding property, how to deal with the error, or how to suppress it. Apparently, this is a hidden Microsoft ruleset and you can't just turn the rule off. </p> <p><a href="http://msdn.microsoft.com/en-us/library/ee461609.aspx" rel="nofollow">The CA0505 documentation page</a> similarly states, "The deprecated property will be ignored because the superceding property is defined." It goes on to say, "Warning CA505 is generated when both the specified deprecated and superceding code analysis properties contain values in a project or build configuration file. To resolve this issue, remove the deprecated property."</p> <p>Text searches throughout the solution for either CA0503 or CA0505 return nothing. However, a search for "CodeAnalysisRules" finds a line in each of my two project files:</p> <blockquote> <p>&lt;CodeAnalysisRules>-Microsoft.Design#CA2210&lt;/CodeAnalysisRules&gt;</p> </blockquote> <p>No corresponding line for "CodeAnalysisRuleSet" is found by a similar text search.</p> <p>Has anyone else encountered this and perhaps found a way either to correct or suppress these messages?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload