diff --git a/README.md b/README.md index 4e10b56..c56115b 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ A set of samples that show how to integrate SQL Server and Azure SQL with [.NET Aspire](https://learn.microsoft.com/dotnet/aspire/get-started/aspire-overview). -**Updated to use Aspire 9.5** +**Updated to use Aspire 13** All the samples can now be easily executed via the [Aspire CLI](https://learn.microsoft.com/dotnet/aspire/cli/install?tabs=windows), using the `aspire run` command from each sample folder. @@ -87,7 +87,7 @@ The database is deployed using a EF Core database migrations, that are deployed Please note that to keep the sample as simple as possible the EF Core entities and migrations have been defined directly in the WebApplication1 solution, which is not a best practice for a real-world application. A dedicated project should be created for the EF Core entities and migrations. > [!NOTE] -> This example uses `Aspire.Hosting.Azure.Sql` so that it can be **deployed in Azure** via `azd up` and an Azure SQL DB will be created and the database schema will be deployed. +> This example uses `Aspire.Hosting.Azure.Sql` so that it can be **deployed in Azure** via `aspire deploy` and an Azure SQL DB will be created and the database schema will be deployed. ## Aspire-Hosted SQL Server + DbUp + DAB diff --git a/base/AspireApp1.AppHost/AspireApp1.AppHost.csproj b/base/AspireApp1.AppHost/AspireApp1.AppHost.csproj index 0d6ae7e..1af0714 100644 --- a/base/AspireApp1.AppHost/AspireApp1.AppHost.csproj +++ b/base/AspireApp1.AppHost/AspireApp1.AppHost.csproj @@ -1,19 +1,19 @@ - + Exe - net9.0 + net10.0 enable enable 8b26f804-ba48-4952-b942-70b35dc00e22 - - - + + + diff --git a/base/AspireApp1.ServiceDefaults/AspireApp1.ServiceDefaults.csproj b/base/AspireApp1.ServiceDefaults/AspireApp1.ServiceDefaults.csproj index 9e34897..1aa2ba9 100644 --- a/base/AspireApp1.ServiceDefaults/AspireApp1.ServiceDefaults.csproj +++ b/base/AspireApp1.ServiceDefaults/AspireApp1.ServiceDefaults.csproj @@ -1,7 +1,7 @@ - net9.0 + net10.0 enable enable true @@ -10,13 +10,13 @@ - - - - - - - + + + + + + + diff --git a/base/WebApplication1/WebApplication1.csproj b/base/WebApplication1/WebApplication1.csproj index 334cc58..2a1a2b3 100644 --- a/base/WebApplication1/WebApplication1.csproj +++ b/base/WebApplication1/WebApplication1.csproj @@ -1,7 +1,7 @@ - net9.0 + net10.0 enable enable diff --git a/byoss/AspireApp1.AppHost/AspireApp1.AppHost.csproj b/byoss/AspireApp1.AppHost/AspireApp1.AppHost.csproj index 0367c8d..5349d2b 100644 --- a/byoss/AspireApp1.AppHost/AspireApp1.AppHost.csproj +++ b/byoss/AspireApp1.AppHost/AspireApp1.AppHost.csproj @@ -1,17 +1,17 @@ - + Exe - net9.0 + net10.0 enable enable 2c343a00-3aab-423f-b3a2-2feabf216baa - + diff --git a/byoss/AspireApp1.ServiceDefaults/AspireApp1.ServiceDefaults.csproj b/byoss/AspireApp1.ServiceDefaults/AspireApp1.ServiceDefaults.csproj index 9e34897..1aa2ba9 100644 --- a/byoss/AspireApp1.ServiceDefaults/AspireApp1.ServiceDefaults.csproj +++ b/byoss/AspireApp1.ServiceDefaults/AspireApp1.ServiceDefaults.csproj @@ -1,7 +1,7 @@ - net9.0 + net10.0 enable enable true @@ -10,13 +10,13 @@ - - - - - - - + + + + + + + diff --git a/byoss/WebApplication1/WebApplication1.csproj b/byoss/WebApplication1/WebApplication1.csproj index 3f64511..170bc98 100644 --- a/byoss/WebApplication1/WebApplication1.csproj +++ b/byoss/WebApplication1/WebApplication1.csproj @@ -1,13 +1,13 @@ - net9.0 + net10.0 enable enable - + diff --git a/hostedss - dbprj/AspireApp1.AppHost/AspireApp1.AppHost.csproj b/hostedss - dbprj/AspireApp1.AppHost/AspireApp1.AppHost.csproj index f68a212..83cc038 100644 --- a/hostedss - dbprj/AspireApp1.AppHost/AspireApp1.AppHost.csproj +++ b/hostedss - dbprj/AspireApp1.AppHost/AspireApp1.AppHost.csproj @@ -1,19 +1,19 @@ - + Exe - net9.0 + net10.0 enable enable 881669bd-202c-44f1-a97c-04b18b065290 - - - + + + diff --git a/hostedss - dbprj/AspireApp1.ServiceDefaults/AspireApp1.ServiceDefaults.csproj b/hostedss - dbprj/AspireApp1.ServiceDefaults/AspireApp1.ServiceDefaults.csproj index bbd8b02..ad1b70f 100644 --- a/hostedss - dbprj/AspireApp1.ServiceDefaults/AspireApp1.ServiceDefaults.csproj +++ b/hostedss - dbprj/AspireApp1.ServiceDefaults/AspireApp1.ServiceDefaults.csproj @@ -1,7 +1,7 @@  - net9.0 + net10.0 enable enable true @@ -10,13 +10,13 @@ - - - - - - - + + + + + + + diff --git a/hostedss - dbprj/WeatherDatabase/WeatherDatabase.sqlproj b/hostedss - dbprj/WeatherDatabase/WeatherDatabase.sqlproj index 615e04c..a08ee89 100644 --- a/hostedss - dbprj/WeatherDatabase/WeatherDatabase.sqlproj +++ b/hostedss - dbprj/WeatherDatabase/WeatherDatabase.sqlproj @@ -1,6 +1,6 @@ - + WeatherDatabase {7EC12138-7EF4-4E0E-B79D-8216528A7A23} diff --git a/hostedss - dbprj/WebApplication1/WebApplication1.csproj b/hostedss - dbprj/WebApplication1/WebApplication1.csproj index 6bbf789..9142fea 100644 --- a/hostedss - dbprj/WebApplication1/WebApplication1.csproj +++ b/hostedss - dbprj/WebApplication1/WebApplication1.csproj @@ -1,14 +1,14 @@ - net9.0 + net10.0 enable enable - - + + diff --git a/hostedss - dbup - dab/AspireApp1.AppHost/AspireApp1.AppHost.csproj b/hostedss - dbup - dab/AspireApp1.AppHost/AspireApp1.AppHost.csproj index 30eab99..3bf7412 100644 --- a/hostedss - dbup - dab/AspireApp1.AppHost/AspireApp1.AppHost.csproj +++ b/hostedss - dbup - dab/AspireApp1.AppHost/AspireApp1.AppHost.csproj @@ -1,19 +1,19 @@ - + Exe - net9.0 + net10.0 enable enable 0ce82d6e-8da1-4cfc-81d2-b99ae1039186 - - - + + + diff --git a/hostedss - dbup - dab/AspireApp1.ServiceDefaults/AspireApp1.ServiceDefaults.csproj b/hostedss - dbup - dab/AspireApp1.ServiceDefaults/AspireApp1.ServiceDefaults.csproj index 9e34897..1aa2ba9 100644 --- a/hostedss - dbup - dab/AspireApp1.ServiceDefaults/AspireApp1.ServiceDefaults.csproj +++ b/hostedss - dbup - dab/AspireApp1.ServiceDefaults/AspireApp1.ServiceDefaults.csproj @@ -1,7 +1,7 @@ - net9.0 + net10.0 enable enable true @@ -10,13 +10,13 @@ - - - - - - - + + + + + + + diff --git a/hostedss - dbup - dab/DatabaseDeploy/DatabaseDeploy.csproj b/hostedss - dbup - dab/DatabaseDeploy/DatabaseDeploy.csproj index 2f465ab..370c48c 100644 --- a/hostedss - dbup - dab/DatabaseDeploy/DatabaseDeploy.csproj +++ b/hostedss - dbup - dab/DatabaseDeploy/DatabaseDeploy.csproj @@ -2,15 +2,15 @@ Exe - net9.0 + net10.0 enable enable - - - + + + diff --git a/hostedss - dbup - dab/WebApplication1/WebApplication1.csproj b/hostedss - dbup - dab/WebApplication1/WebApplication1.csproj index c148053..9142fea 100644 --- a/hostedss - dbup - dab/WebApplication1/WebApplication1.csproj +++ b/hostedss - dbup - dab/WebApplication1/WebApplication1.csproj @@ -1,14 +1,14 @@ - net9.0 + net10.0 enable enable - - + + diff --git a/hostedss - dbup/AspireApp1.AppHost/AspireApp1.AppHost.csproj b/hostedss - dbup/AspireApp1.AppHost/AspireApp1.AppHost.csproj index 1b60a2b..919e1d0 100644 --- a/hostedss - dbup/AspireApp1.AppHost/AspireApp1.AppHost.csproj +++ b/hostedss - dbup/AspireApp1.AppHost/AspireApp1.AppHost.csproj @@ -1,19 +1,19 @@ - + Exe - net9.0 + net10.0 enable enable 33685a5e-74bb-4f05-9881-601cf33cad11 - - - + + + diff --git a/hostedss - dbup/AspireApp1.ServiceDefaults/AspireApp1.ServiceDefaults.csproj b/hostedss - dbup/AspireApp1.ServiceDefaults/AspireApp1.ServiceDefaults.csproj index 9e34897..1aa2ba9 100644 --- a/hostedss - dbup/AspireApp1.ServiceDefaults/AspireApp1.ServiceDefaults.csproj +++ b/hostedss - dbup/AspireApp1.ServiceDefaults/AspireApp1.ServiceDefaults.csproj @@ -1,7 +1,7 @@ - net9.0 + net10.0 enable enable true @@ -10,13 +10,13 @@ - - - - - - - + + + + + + + diff --git a/hostedss - dbup/DatabaseDeploy/DatabaseDeploy.csproj b/hostedss - dbup/DatabaseDeploy/DatabaseDeploy.csproj index 2f465ab..370c48c 100644 --- a/hostedss - dbup/DatabaseDeploy/DatabaseDeploy.csproj +++ b/hostedss - dbup/DatabaseDeploy/DatabaseDeploy.csproj @@ -2,15 +2,15 @@ Exe - net9.0 + net10.0 enable enable - - - + + + diff --git a/hostedss - dbup/WebApplication1/WebApplication1.csproj b/hostedss - dbup/WebApplication1/WebApplication1.csproj index 6bbf789..9142fea 100644 --- a/hostedss - dbup/WebApplication1/WebApplication1.csproj +++ b/hostedss - dbup/WebApplication1/WebApplication1.csproj @@ -1,14 +1,14 @@ - net9.0 + net10.0 enable enable - - + + diff --git a/hostedss - ef/AspireApp1.AppHost/AspireApp1.AppHost.csproj b/hostedss - ef/AspireApp1.AppHost/AspireApp1.AppHost.csproj index 7a2dc8c..75a2815 100644 --- a/hostedss - ef/AspireApp1.AppHost/AspireApp1.AppHost.csproj +++ b/hostedss - ef/AspireApp1.AppHost/AspireApp1.AppHost.csproj @@ -1,19 +1,19 @@  - + Exe - net9.0 + net10.0 enable enable 67a3978e-b32f-4bc0-b301-85286f5bc810 - - - + + + diff --git a/hostedss - ef/AspireApp1.DatabaseMigrations/AspireApp1.DatabaseMigrations.csproj b/hostedss - ef/AspireApp1.DatabaseMigrations/AspireApp1.DatabaseMigrations.csproj index 3317f0b..f843d96 100644 --- a/hostedss - ef/AspireApp1.DatabaseMigrations/AspireApp1.DatabaseMigrations.csproj +++ b/hostedss - ef/AspireApp1.DatabaseMigrations/AspireApp1.DatabaseMigrations.csproj @@ -1,15 +1,15 @@  - net9.0 + net10.0 enable enable dotnet-AspireApp1.DatabaseMigrations-05ddc414-b52a-4096-8849-02c132456af4 - - + + diff --git a/hostedss - ef/AspireApp1.ServiceDefaults/AspireApp1.ServiceDefaults.csproj b/hostedss - ef/AspireApp1.ServiceDefaults/AspireApp1.ServiceDefaults.csproj index 1bc991c..ad1b70f 100644 --- a/hostedss - ef/AspireApp1.ServiceDefaults/AspireApp1.ServiceDefaults.csproj +++ b/hostedss - ef/AspireApp1.ServiceDefaults/AspireApp1.ServiceDefaults.csproj @@ -1,7 +1,7 @@  - net9.0 + net10.0 enable enable true @@ -10,13 +10,13 @@ - - - - - - - + + + + + + + diff --git a/hostedss - ef/WebApplication1/WebApplication1.csproj b/hostedss - ef/WebApplication1/WebApplication1.csproj index e10e825..fa088dc 100644 --- a/hostedss - ef/WebApplication1/WebApplication1.csproj +++ b/hostedss - ef/WebApplication1/WebApplication1.csproj @@ -1,19 +1,19 @@  - net9.0 + net10.0 enable enable - - - + + + runtime; build; native; contentfiles; analyzers; buildtransitive all - + diff --git a/hostedss/AspireApp1.AppHost/AspireApp1.AppHost.csproj b/hostedss/AspireApp1.AppHost/AspireApp1.AppHost.csproj index 2759c48..8a2f300 100644 --- a/hostedss/AspireApp1.AppHost/AspireApp1.AppHost.csproj +++ b/hostedss/AspireApp1.AppHost/AspireApp1.AppHost.csproj @@ -1,18 +1,18 @@ - + Exe - net9.0 + net10.0 enable enable 0d58b20c-2afc-4388-a733-4c2057e0a27b - - + + diff --git a/hostedss/AspireApp1.ServiceDefaults/AspireApp1.ServiceDefaults.csproj b/hostedss/AspireApp1.ServiceDefaults/AspireApp1.ServiceDefaults.csproj index 9e34897..1aa2ba9 100644 --- a/hostedss/AspireApp1.ServiceDefaults/AspireApp1.ServiceDefaults.csproj +++ b/hostedss/AspireApp1.ServiceDefaults/AspireApp1.ServiceDefaults.csproj @@ -1,7 +1,7 @@ - net9.0 + net10.0 enable enable true @@ -10,13 +10,13 @@ - - - - - - - + + + + + + + diff --git a/hostedss/WebApplication1/WebApplication1.csproj b/hostedss/WebApplication1/WebApplication1.csproj index 6bbf789..9142fea 100644 --- a/hostedss/WebApplication1/WebApplication1.csproj +++ b/hostedss/WebApplication1/WebApplication1.csproj @@ -1,14 +1,14 @@ - net9.0 + net10.0 enable enable - - + + diff --git a/todo_app/TodoApp.AppHost/TodoApp.AppHost.csproj b/todo_app/TodoApp.AppHost/TodoApp.AppHost.csproj index 510d1c3..4f88def 100644 --- a/todo_app/TodoApp.AppHost/TodoApp.AppHost.csproj +++ b/todo_app/TodoApp.AppHost/TodoApp.AppHost.csproj @@ -1,10 +1,10 @@ - + Exe - net9.0 + net10.0 enable enable true @@ -12,13 +12,13 @@ - - - - - - - + + + + + + + diff --git a/todo_app/TodoApp.Database/TodoDB.sqlproj b/todo_app/TodoApp.Database/TodoDB.sqlproj index a785603..00df077 100644 --- a/todo_app/TodoApp.Database/TodoDB.sqlproj +++ b/todo_app/TodoApp.Database/TodoDB.sqlproj @@ -1,6 +1,6 @@ - + TodoDB {205974aa-6e03-4e54-b684-782e0a9a56ed} diff --git a/todo_app/TodoApp.ServiceDefaults/TodoApp.ServiceDefaults.csproj b/todo_app/TodoApp.ServiceDefaults/TodoApp.ServiceDefaults.csproj index 9e34897..1aa2ba9 100644 --- a/todo_app/TodoApp.ServiceDefaults/TodoApp.ServiceDefaults.csproj +++ b/todo_app/TodoApp.ServiceDefaults/TodoApp.ServiceDefaults.csproj @@ -1,7 +1,7 @@ - net9.0 + net10.0 enable enable true @@ -10,13 +10,13 @@ - - - - - - - + + + + + + +