2016-01-18 10 views
0

Получение этой ошибки во время работы VSSonarExtension:CA0053 Ошибка с Sonar

MSBUILD : error : CA0053 : Unable to load rule assembly 
    'c:\program files (x86)\microsoft visual studio 10.0\team tools\static analysis tools\ 
    fxcop\rules\dataflowrules.dll': Unable to load one or more of the requested types. 
    Retrieve the LoaderExceptions property for more information. 
MSBUILD : error : CA0053 : Unable to load rule assembly 
    'c:\program files (x86)\microsoft visual studio 10.0\team tools\static analysis tools\ 
    fxcop\rules\designrules.dll': Unable to load one or more of the requested types. 
    Retrieve the LoaderExceptions property for more information. 
MSBUILD : error : CA0053 : Unable to load rule assembly 
    'c:\program files (x86)\microsoft visual studio 10.0\team tools\static analysis tools\ 
    fxcop\rules\globalizationrules.dll': Unable to load one or more of the requested types. 
    Retrieve the LoaderExceptions property for more information. 
MSBUILD : error : CA0053 : Unable to load rule assembly 
    'c:\program files (x86)\microsoft visual studio 10.0\team tools\static analysis tools\ 
    fxcop\rules\interoperabilityrules.dll': Unable to load one or more of the requested types. 
    Retrieve the LoaderExceptions property for more information. 
MSBUILD : error : CA0053 : Unable to load rule assembly 
    'c:\program files (x86)\microsoft visual studio 10.0\team tools\static analysis tools\ 
    fxcop\rules\maintainabilityrules.dll': Unable to load one or more of the requested types. 
    Retrieve the LoaderExceptions property for more information. 
MSBUILD : error : CA0053 : Unable to load rule assembly 
    'c:\program files (x86)\microsoft visual studio 10.0\team tools\static analysis tools\ 
    fxcop\rules\mobilityrules.dll': Unable to load one or more of the requested types. 
    Retrieve the LoaderExceptions property for more information. 
MSBUILD : error : CA0053 : Unable to load rule assembly 
    'c:\program files (x86)\microsoft visual studio 10.0\team tools\static analysis tools\ 
    fxcop\rules\namingrules.dll': Unable to load one or more of the requested types. 
    Retrieve the LoaderExceptions property for more information. 
MSBUILD : error : CA0053 : Unable to load rule assembly 
    'c:\program files (x86)\microsoft visual studio 10.0\team tools\static analysis tools\ 
    fxcop\rules\performancerules.dll': Unable to load one or more of the requested types. 
    Retrieve the LoaderExceptions property for more information. 
MSBUILD : error : CA0053 : Unable to load rule assembly 
    'c:\program files (x86)\microsoft visual studio 10.0\team tools\static analysis tools\ 
    fxcop\rules\portabilityrules.dll': Unable to load one or more of the requested types. 
    Retrieve the LoaderExceptions property for more information. 
MSBUILD : error : CA0053 : Unable to load rule assembly 
    'c:\program files (x86)\microsoft visual studio 10.0\team tools\static analysis tools\ 
    fxcop\rules\reliabilityrules.dll': Unable to load one or more of the requested types. 
    Retrieve the LoaderExceptions property for more information. 
MSBUILD : error : CA0053 : Unable to load rule assembly 
    'c:\program files (x86)\microsoft visual studio 10.0\team tools\static analysis tools\ 
    fxcop\rules\securityrules.dll': Unable to load one or more of the requested types. 
    Retrieve the LoaderExceptions property for more information. 
MSBUILD : error : CA0053 : Unable to load rule assembly 
    'c:\program files (x86)\microsoft visual studio 10.0\team tools\static analysis tools\ 
    fxcop\rules\securitytransparencyrules.dll': Unable to load one or more of the requested types. 
    Retrieve the LoaderExceptions property for more information. 
MSBUILD : error : CA0053 : Unable to load rule assembly 
    'c:\program files (x86)\microsoft visual studio 10.0\team tools\static analysis tools\ 
    fxcop\rules\usagerules.dll': Unable to load one or more of the requested types. 
    Retrieve the LoaderExceptions property for more information. 
MSBUILD : error : CA0053 : Unable to load rule assembly 
    'c:\program files (x86)\microsoft visual studio 12.0\team tools\static analysis tools\ 
    fxcop\rules\securitytransparencyrules.dll': Unable to load one or more of the requested types. 
    Retrieve the LoaderExceptions property for more information. 
MSBUILD : error : Code Analysis detected errors. 
    See Code Analysis results window or log file for details. 
    1081 Warning(s) 15 Error(s) 
    Time Elapsed 00:00:41.66 
    [CxxSonarQubeMsbuidRunner] Failed to build project, check log in .cxxresults\BuildLog.txt 

People are saying это связано с тем, что проект был создан на предыдущей версии VS (я использую VS2013). Ошибка связана с FxCop. Кто-нибудь знает, как исправить это и получить отчет от VSSonarExtension? Любой вход оценивается!

ответ

0

Похоже, я понял, что ошибка была вызвана тем, что проекты были созданы в более ранних версиях VisualStudio. Исправление от this website помогает значительно - я проверил свое решение, поместил файл CA0053 Fix в папку с решением, удостоверился, что файлы (в частности, все файлы .csproj) НЕ доступны только для чтения и запускают этот инструмент. Это, похоже, устранило проблему.

 Смежные вопросы

  • Нет связанных вопросов^_^