Deploy dacpac fails with compatibility set to 130 When we do a build with dacpac, there is a timeout error connecting to the server when the compatibility level is set to 130 on one of the databases. The process builds just fine as long as the one database is set to compatibility level 100. That is where it used to be. 


We use SQL Server 2016
This is the sqlpackage executable:
C:\Program Files (x86)\Microsoft SQL Server\130\DAC\bin\sqlpackage.exe


Am I missing settings or something else on the database that would cause this?
I had (have) this same problem.

When the dacpac generates the script, it queries the target database to see what objects are there. One or more of those queries went from sub second to much longer, when we moved to 2016. By updating the statistics of some system tables I was able to bring it back down to normal behavior. 

update statistics sys.sysschobjs;
update statistics sys.sysobjvalues;
update statistics sys.sysidxstats;
update statistics sys.syssingleobjrefs;


So, I don’t know exactly what changed to make SQL Server run those queries slowly, but this is how we've solved the problem.