Reputation: 175
I have a db project in my solution and I create a dacpac for that. I use that dacpac for my VSTS deployment. All is good till then. Now I have to reference another dacpac in my project and make use of it. I add that dacpac to my solution and use it. My DB project works fine. It builds fine too on VSTS But the publish Dacpac fails with error stating that the referenced dacpac could not be found. I want to ignore that dacpac from being compared or making any changes to db since it's just a referenced Dacpac. Let me know
Upvotes: 1
Views: 303
Reputation: 53
If you want to reference the other dacpac but not deploy it you can specify the following on deployment to ignore it (using SqlPackage.exe or the Microsoft.SqlServer.Dac.dll library)
/p: IncludeCompositeObjects=false
Upvotes: 1