DacFx provisioning support #1696
bjorkstromm
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
From the DacFx side, we're interested in helping folks deploy the database changes within their Aspire host's configuration! Should you need anything from DacFx (or Microsoft.Build.Sql), please don't hesitate to flag us down over on https://github.com/microsoft/DacFx in case I miss a notification here. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I played with DacFx support yesterday, and wondered if a pull request would be of interest? If not, are there plans for a
aspire-contrib
repo/organization, where a curated set of extensions and and components could live?Context:
https://x.com/bjorkstromm/status/1747749746272288877?s=20
High-level functionality:
dacpac
using Aspire, example codeAddDacFxProvisioning()
registers a lifecycle hook with a dac provisioner, that will start dacpac deployments after endpoints are allocated.WithDacPackage<T>()
).Utilizing Microsoft.Build.Sql we can get the dacpac directly via project reference in the AppHost. In order to get the output path, I needed to modify the
CreateServiceMetadataSources
target to also include OutputPath. Adding support for pointing at the dacpac-file directly should also be considered.Beta Was this translation helpful? Give feedback.
All reactions