Warning CA0060

Automate and integrate using the SQL comparison API

Moderators: Chris Auckland, David Atkinson, Michelle Taylor, chengvoon.tong

Warning CA0060

Postby malsergey » Tue Jul 24, 2012 7:48 pm


After adding SDK to a project the Code Analysis shows warning:

CA0060 : The indirectly-referenced assembly 'System.Data.SQLite, Version=, Culture=neutral, PublicKeyToken=db937bc2d44ff139' could not be found. This assembly is not required for analysis, however, analysis results could be incomplete. This assembly was referenced by: D:\\...\\RedGate.SQLCompare.Engine.dll. in

Looks like the RedGate.SQLCompare.Engine.dll used only 32 bit library of System.Data.SQLite. But i can't use 32 bit libraries in solution. Adding 64 bit library of SQLite didn't solve it.

Can somebody help to me with it?
Thanks in advance.
Posts: 2
Joined: Tue Jul 24, 2012 7:36 pm

Postby Brian Donahue » Wed Jul 25, 2012 1:14 pm

The code analysis warning is correct, however, there is nothing you can do to prevent it except to compile as 32-bit or possibly exclude any references to any of the SDK BackupReader DLLs.

The SDK code will happily function as 64-bit code, however, the BackupReader component is 32-bit only because it has hard-coded 32-bit offsets. Part of this code uses SqlLite to persist information about the schema of the database in the backup file. So if you have any code that reads backups, you will have to compile as x86.
Brian Donahue
Posts: 6670
Joined: Mon Aug 23, 2004 10:48 am

Return to SQL Comparison SDK 10

Who is online

Users browsing this forum: No registered users and 0 guests