Options

Warning CA0060

malsergeymalsergey Posts: 4
Hi,

After adding SDK to a project the Code Analysis shows warning:
CA0060 : The indirectly-referenced assembly 'System.Data.SQLite, Version=1.0.54.0, 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.

Comments

  • Options
    Brian DonahueBrian Donahue Posts: 6,590 Bronze 1
    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.
Sign In or Register to comment.