suppressmessage

Preventing multiple reporting of the same rule violation in FxCop -- What is Id?

FxCop is currently reporting the same rule violation for a particular method -- it has two out parameters, because I want to return two values to the caller without creating a struct for it. I wonder if anonymous types would solve my problem, but I didn't know about them at the time I had written the method. Anyhow, I'm getting CheckId...

VS2010 / Code Analysis: Turn off a rule for a project without custom ruleset....

...any change? The scenario is this: For our company we develop a standard how code should look. This will be the MS full rule set as it looks now. For some specific projects we may want to turn off specific rules. Simply because for a specific project this is a "known exception". Example? CA1026 - while perfectly ok in most cases, th...

SuppressMessage scope=type

Hi, how can I do suppress FxCop warnings for whole type? I have Hi guys, how to suppress warnings for all members in type namespace ConsoleApplication1 { public static class Serializer<T> { public static string Serialize(T obj) { return string.Empty; } public static T Deserialize...

Cannot suppress CA1903:UseOnlyApiFromTargetedFramework

FxCop is telling me the following: "Assembly 'ILRetail.eBusiness.Common.WebUtility.dll' has a reference to assembly 'System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Because this assembly was introduced in .NET Framework 3.5 Service Pack 1, which is higher than the project's ...