2016-01-18 85 views
0

收到此錯誤,同時運行VSSonarExtension:錯誤CA0053與聲納

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文件)不是隻讀,並且運行該工具。這似乎解決了這個問題。