Link to home
Start Free TrialLog in
Avatar of PoorDude
PoorDude

asked on

How to disable the CodeAnalysis error CA0060 ?

Hi All,

I  need to disable the CodeAnalysis error CA0060 

Is there is any settings which will Turn this error Off.

Note : - I dont want to add these dependent dlls in my project reference.

 

 (RunCodeAnalysis target) ->

  MSBUILD : error : CA0060 : The indirectly-referenced assembly 'office, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' could not be found. This assembly is not required for analysis, however, analysis results could be incomplete. This assembly was referenced by: 'Microsoft.Office.Interop.Excel.dll'.

  MSBUILD : error : CA0060 : The indirectly-referenced assembly 'Microsoft.Vbe.Interop, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' could not be found. This assembly is not required for analysis, however, analysis results could be incomplete. This assembly was referenced by: 'Microsoft.Office.Interop.Excel.dll'

MSBUILD : error : CA0060 : The indirectly-referenced assembly 'office, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' could not be found. This assembly is not required for analysis, however, analysis results could be incomplete. This assembly was referenced by: 'Microsoft.Office.Interop.Excel.dll'.

  MSBUILD : error : CA0060 : The indirectly-referenced assembly 'Microsoft.Vbe.Interop, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' could not be found. This assembly is not required for analysis, however, analysis results could be incomplete. This assembly was referenced by: 'Microsoft.Office.Interop.Excel.dll'

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of SameerJagdale
SameerJagdale
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Brad Howe
Brad Howe
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
TheLearnedOne:
hades666: and me posted links that says - there is no way to disable this, you either need to add the reference or live the way it is unless you disable the code analysis :-)