SSDT - Exclude certain schema along with unnamed constraint
You can use utility DacpacTool to remove the schema completely from a dacpac file - I wrote it to do exactly this (among other things). It is quite rough on the edges so far, but it works.


Extract dacpac from target database to MSSQLDatabase.dacpac
Create a file blacklist.txt with one line: &lt;References Name="\[SchemaThatYouWantRemoved]
DacpacTool.exe filter -f MSSQLDatabase.dacpac -b blacklist.txt
DacpacTool.exe filter -f DBProject.dacpac -b blacklist.txt
Script the diff between the two dacpacs. DeploymentFilterContributor is no longer needed: sqlpackage.exe /action:script /sourcefile:DBProject.dacpac /TargetFile:"MSSQLDatabase.dacpac" /outputpath:"c:\temp\script_AfterDLL.sql"