Including Custom rules developed in VS 2005 into FXCop 1.35

Hi

We have developoed some custom rules in VS 2005. When I try to add these rules (.dll) into the FXCop 1.35 stand alone tool it is unable to do so (Giving an assembly load exception).

Is this because of some problem in the .dll ( it is running fine in the built in FXCop toll of VS 2005)

or is there some other reason?

Thank You

Bharat A Umarji

[391 byte] By [bharatumarji] at [2007-12-21]
# 1
FxCop 1.35 uses a different IntrospectionAnalysisEngine.dll

Stand alone FcCop 1.35 - IntrospectionAnalysisEngine.dll – Version: 1.35

Static Analysis Tools in Visual Studio 8 - IntrospectionAnalysisEngine.dll – Version: 8.0

Could these differences be the reason? If yes, then is it not possible to have VS 2005 custom dlls in FxCop stand alone tool?

Thanks,

RaviJoshi at 2007-9-10 > top of Msdn Tech,Visual Studio Team System,Visual Studio Code Analysis and Code Metrics...
# 2

You need to compile against the version you are targeting.

For more information we've written a blog post that shows how to do this easily:

FAQ: Can I create custom rules that target both Visual Studio and FxCop?

DavidM.Kean-MSFT at 2007-9-10 > top of Msdn Tech,Visual Studio Team System,Visual Studio Code Analysis and Code Metrics...

Visual Studio Team System

Site Classified