Importing bacpac into an Aspire DB resource

I adopted .NET Aspire to manage my growing web application’s microservices and containerized dependencies, making it easy for me and my team to launch the entire codebase with a single command. To solve the problem of starting with an empty database, I created a custom Aspire command that lets me easily drop the existing database and import a BacPac file directly from the Aspire dashboard.

November 1, 2025 · 6 min · Me