How to Exclude Foreign Keys during Publish action in sqlpackage I am trying to publish a .dacpac extract to a target database, I want to exclude just the foreign key constraints in all the tables.  After going through the ExcludeObjectTypes options I do not find a clear way to exclude just the foreign keys.

I need to migrate the schema structure of the source except for the foreign keys as I will be loading the data in-parallel by other means. So the requirement is to just exclude the foreign keys when I perform Publish
You need to disable deployment option "Script validation for new constraints".
Foreign keys will be still created, but in not trusted state and existing data will not be validated.
Publish script will contains something like:

ALTER TABLE [Tab] WITH NOCHECK
    ADD CONSTRAINT [FK_Tab] FOREIGN KEY ([Id]) REFERENCES [Tab2] ([Id]);


This will allow you to deploy all constraints without errors, but you still need to disable them in post deployment script.