Locked Error while adding custom rules to FxCop 10.0

  • 23 апреля 2012 г. 9:49
     
     

    Getting error while adding custom rule to FxCop 10.0 :Unable to load rule assembly 'C:\Users\rohit\Documents\Visual Studio 2010\Projects\CustomRule4FxCOP\CustomRule4FxCOP\bin\Debug\CustomRule4FxCOP.dll': Could not load file or assembly 'file:///C:\Users\rohit\Documents\Visual Studio 2010\Projects\CustomRule4FxCOP\CustomRule4FxCOP\bin\Debug\CustomRule4FxCOP.dll' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

Все ответы

  • 23 апреля 2012 г. 13:06
     
     Отвечено
    Are you sure that you are using FxCop 10.0?  If so, what versions of which assemblies are referenced by your rule assembly?  (Please verify this in the compiled assembly, not the project.  This can be done using ildasm or an alternate decompiler like Reflector.)