sql-database-projects
Installation
SKILL.md
Build and publish a SQL database project
This owns the tooling: the project file, the build, the dacpac and the publish. It does not
own how to sequence a schema change (schema-migrations-safely), running the publish from a
pipeline (github-actions-for-sql), or deploying the application beside it
(deploy-app-to-azure). Open sqlpackage-import-export when the job is moving a whole database
rather than building one, or when the artifact is a bacpac.
The build runs anywhere, and SqlPackage is a separate install
dotnet new install Microsoft.Build.Sql.Templates
dotnet new sqlproj -n ShopDb -o ShopDb --target-platform SqlAzureV12
dotnet build ShopDb # writes ShopDb/bin/Debug/ShopDb.dacpac
dotnet tool install -g microsoft.sqlpackage