I'm getting this error when using sqlpackage.exe, or the DacFx DLLs, to programmatically publish a dacpac (A), compiled and provided by a different team, which in turn has a dependency on another dacpac (B).
I can confirm that:
- The reference to B from A has the "Suppress Reference Warnings" to True
- The B .dacpac file is in the same folder as the A .dacpac file
- I have tried with 2 different versions of Microsoft.SqlServer.Dac.dll, 12.0.2882.1 and 14.0.3881.1
- Both dacpacs have the setting to target SQL Server 2012, and I am attempting to publish to SQL Server 2012
- I have tried both with the
IncludeCompositeObjects
deploy options set to true, and to false
What am I doing wrong? How can I publish a dacpac that has been compiled and provided to me, which has a database reference that is referenced with a path that is invalid for me?