Top "Fxcop" questions

Microsoft's free static analysis tool for analyzing .NET managed code assemblies.

What's with the "Afx" in StdAfx.h?

I'm just curious what Afx stands for. And what about Fx in FxCop?

.net mfc fxcop stdafx.h
FxCop 1.36 is gone

I just wanted to download FxCop 1.36 but I can't find it in the internet. A few days ago FxCop 10 came …

installation fxcop
CA1819: Properties shouldn't return arrays - What is the right alternative?

I encountered this FxCop rule before and wasn't really content with how to solve violations (thread1, thread2). I now have …

c# .net fxcop
Exclude complete namespace from FxCop code analysis?

Is it possible to exclude a complete namespace from all FxCop analysis while still analyzing the rest of the assembly …

fxcop
Is there a custom FxCop rule that will detect unused PUBLIC methods?

I just tried FxCop. It does detect unused private methods, but not unused public. Is there a custom rule that …

.net code-analysis fxcop public-method
Code Analysis Warning CA2213 - Call Dispose() on IDisposable backing field

Wanted to post this, even though I figured it out as I was writing the question. Will post answer below. …

c# visual-studio visual-studio-2015 fxcop c#-6.0
How to fix FxCop error code 512?

While refactoring, moving around some assemblies around, etc. I compiled a solution in Visual Studio and got back a single …

c# visual-studio-2010 fxcop
Why can't Microsoft analyzers find Microsoft.CodeAnalysis?

I'm trying to add Microsoft.CodeAnalysis.FXCopAnalyzers (latest stable version) to my ASP.NET project. When I install it via …

c# code-analysis fxcop analyzer microsoft.codeanalysis
FxCop can't resolve references

I'm working on project in C#. Now I've set up a Hudson server an I've installed the .Net 4 Framework and …

c# hudson fxcop fxcopcmd
Are there any good workarounds for FxCop warning CA1006?

I am having trouble with FxCop warning CA1006, Microsoft.Design "DoNotNestGenericTypesInMemberSignatures". Specifically, I am designing a ReportCollection<T> …

c# .net fxcop