Version 10.5 of the SQL Comparison SDK includes changes that might break your projects that use the SQL Compare, SQL Data Compare, or SQL Packager APIs.
To fix your projects, you might need to do one or more of the following:
Use the new
In previous versions of the SQL Comparison SDK, comparison options were specified as a bit flags enum. For example:
In version 10.5, options are specified using the methods in the
Options class. For example:
Add new references
With version 10.5, projects must reference RedGate.Shared.ComparisonInterfaces.dll.
Projects using the SQL Data Compare API must now also reference RedGate.SQLCompare.Engine.dll.
Update uses of
In version 10.5, the
DifferenceType enum has moved from
You need to update any files that use
using RedGate.Shared.ComparisonInterfacesto the list of
usingstatements at the top of your files.
- Replace all uses of
Distribute new assemblies
When you distribute your application, you now need to include the following assemblies:
- Newtonsoft.Json.dll (distributed under the MIT license)
- System.Data.SqlLocalDb.dll (distributed under the Apache license)
For more information, see Distributing your SDK applications.