Locked Error while adding custom rules to FxCop 10.0

  • 2012년 4월 23일 월요일 오전 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.

모든 응답

  • 2012년 4월 23일 월요일 오후 1: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.)