From bb807b82979f068f74c2337177c9db31f26e133b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 17 Oct 2025 20:24:58 +0000 Subject: [PATCH 1/3] Initial plan From 08b2293b266b431e258cecd5bb30dcd69f7f5fe9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 17 Oct 2025 20:31:49 +0000 Subject: [PATCH 2/3] Upgrade all projects to .NET 10 Co-authored-by: ardalis <782127+ardalis@users.noreply.github.com> --- 01-VerticalSlice/Directory.Build.props | 8 ++++++++ .../aspire/OrderDemo.AppHost/OrderDemo.AppHost.csproj | 3 --- 01-VerticalSlice/global.json | 7 +++++++ 01-VerticalSlice/src/OrderDemo.Api/OrderDemo.Api.csproj | 3 --- .../src/ServiceDefaults/ServiceDefaults.csproj | 3 --- 02-CleanArchitecture/Directory.Build.props | 1 + 02-CleanArchitecture/global.json | 4 ++-- 02-backup/Directory.Build.props | 3 ++- 02-backup/global.json | 7 +++++++ README.md | 8 ++++---- demoplan.md | 2 +- 11 files changed, 32 insertions(+), 17 deletions(-) create mode 100644 01-VerticalSlice/Directory.Build.props create mode 100644 01-VerticalSlice/global.json create mode 100644 02-backup/global.json diff --git a/01-VerticalSlice/Directory.Build.props b/01-VerticalSlice/Directory.Build.props new file mode 100644 index 0000000..ca74a71 --- /dev/null +++ b/01-VerticalSlice/Directory.Build.props @@ -0,0 +1,8 @@ + + + net10.0 + enable + enable + + + diff --git a/01-VerticalSlice/aspire/OrderDemo.AppHost/OrderDemo.AppHost.csproj b/01-VerticalSlice/aspire/OrderDemo.AppHost/OrderDemo.AppHost.csproj index 4ddc44d..c9faf47 100644 --- a/01-VerticalSlice/aspire/OrderDemo.AppHost/OrderDemo.AppHost.csproj +++ b/01-VerticalSlice/aspire/OrderDemo.AppHost/OrderDemo.AppHost.csproj @@ -4,9 +4,6 @@ Exe - net9.0 - enable - enable 47f99468-f41d-48b8-ae3f-69682954d973 diff --git a/01-VerticalSlice/global.json b/01-VerticalSlice/global.json new file mode 100644 index 0000000..54e9979 --- /dev/null +++ b/01-VerticalSlice/global.json @@ -0,0 +1,7 @@ +{ + "sdk": { + "version": "10.0.100-rc.2.25502.107", + "rollForward": "latestMinor", + "allowPrerelease": true + } +} diff --git a/01-VerticalSlice/src/OrderDemo.Api/OrderDemo.Api.csproj b/01-VerticalSlice/src/OrderDemo.Api/OrderDemo.Api.csproj index 74efbfe..817e14e 100644 --- a/01-VerticalSlice/src/OrderDemo.Api/OrderDemo.Api.csproj +++ b/01-VerticalSlice/src/OrderDemo.Api/OrderDemo.Api.csproj @@ -1,9 +1,6 @@  - net9.0 - enable - enable diff --git a/01-VerticalSlice/src/ServiceDefaults/ServiceDefaults.csproj b/01-VerticalSlice/src/ServiceDefaults/ServiceDefaults.csproj index acfb994..eea6b6b 100644 --- a/01-VerticalSlice/src/ServiceDefaults/ServiceDefaults.csproj +++ b/01-VerticalSlice/src/ServiceDefaults/ServiceDefaults.csproj @@ -1,9 +1,6 @@  - net9.0 - enable - enable diff --git a/02-CleanArchitecture/Directory.Build.props b/02-CleanArchitecture/Directory.Build.props index a304815..3dab8b2 100644 --- a/02-CleanArchitecture/Directory.Build.props +++ b/02-CleanArchitecture/Directory.Build.props @@ -10,4 +10,5 @@ 1591 + \ No newline at end of file diff --git a/02-CleanArchitecture/global.json b/02-CleanArchitecture/global.json index ae7ec8e..33d0916 100644 --- a/02-CleanArchitecture/global.json +++ b/02-CleanArchitecture/global.json @@ -1,7 +1,7 @@ { "sdk": { - "version": "9.0.110", + "version": "10.0.100-rc.2.25502.107", "rollForward": "latestMinor", - "allowPrerelease": false + "allowPrerelease": true } } \ No newline at end of file diff --git a/02-backup/Directory.Build.props b/02-backup/Directory.Build.props index f548bed..edc7f67 100644 --- a/02-backup/Directory.Build.props +++ b/02-backup/Directory.Build.props @@ -1,8 +1,9 @@ - net9.0 + net10.0 enable enable true + diff --git a/02-backup/global.json b/02-backup/global.json new file mode 100644 index 0000000..54e9979 --- /dev/null +++ b/02-backup/global.json @@ -0,0 +1,7 @@ +{ + "sdk": { + "version": "10.0.100-rc.2.25502.107", + "rollForward": "latestMinor", + "allowPrerelease": true + } +} diff --git a/README.md b/README.md index 412dd3a..18187e6 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ Each folder is a **complete, runnable example** of the same domain implemented i ## ⚙️ Prerequisites -- [.NET 9 SDK](https://dotnet.microsoft.com/download/dotnet/9.0) or later +- [.NET 10 SDK](https://dotnet.microsoft.com/download/dotnet/10.0) - [Docker Desktop](https://www.docker.com/products/docker-desktop/) - [Visual Studio 2022 17.10+](https://visualstudio.microsoft.com/vs/) or [Rider / VS Code](https://code.visualstudio.com) - [Aspire 9.5+](https://learn.microsoft.com/en-us/dotnet/aspire/overview) for local container orchestration @@ -59,7 +59,7 @@ Each folder is a **complete, runnable example** of the same domain implemented i Optionally you may find the Aspire App Templates helpful. Install them with: ```bash -dotnet new install Aspire.ProjectTemplates@9.5.1 +dotnet new install Aspire.ProjectTemplates::10.0.0-* ``` --- @@ -98,8 +98,8 @@ dotnet run ## 🧰 Technologies Used -- **.NET 9 / 10 Preview** -- **EF Core 9** for data access +- **.NET 10** +- **EF Core 10** for data access - **Mediator** (Martin Costello’s library) for in-process messaging - **Aspire** for local orchestration and observability - **Swagger / Minimal APIs** diff --git a/demoplan.md b/demoplan.md index 02c998c..855027e 100644 --- a/demoplan.md +++ b/demoplan.md @@ -11,7 +11,7 @@ Each demo will be placed in a numbered subfolder (e.g., `01-VerticalSlice`). ## Common Demo Requirements -- [ ] **Development Environment**: Ensure all demos are built using .NET 9 or later. +- [ ] **Development Environment**: Ensure all demos are built using .NET 10. - [ ] **Aspire**: All demo apps will use Aspire 9.5.1 or later, with Aspire's `AspireAppHostBuilderExtensions` package installed. - [ ] **Database**: Use a SQL Server database in an Aspire-managed docker container. - [ ] **API Design**: All demos should expose RESTful APIs for core functionality, and support Scalar for API documentation. APIs will always return DTOs, not entities or domain types. From e456385ee5fcb80113d91c562d94a9977c720d10 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 17 Oct 2025 20:33:43 +0000 Subject: [PATCH 3/3] Remove explicit net9.0 reference from AspireTests project Co-authored-by: ardalis <782127+ardalis@users.noreply.github.com> --- .../OrderDemo.CleanArch.AspireTests.csproj | 3 --- 1 file changed, 3 deletions(-) diff --git a/02-CleanArchitecture/tests/OrderDemo.CleanArch.AspireTests/OrderDemo.CleanArch.AspireTests.csproj b/02-CleanArchitecture/tests/OrderDemo.CleanArch.AspireTests/OrderDemo.CleanArch.AspireTests.csproj index 26586e7..330bad9 100644 --- a/02-CleanArchitecture/tests/OrderDemo.CleanArch.AspireTests/OrderDemo.CleanArch.AspireTests.csproj +++ b/02-CleanArchitecture/tests/OrderDemo.CleanArch.AspireTests/OrderDemo.CleanArch.AspireTests.csproj @@ -1,9 +1,6 @@ - net9.0 - enable - enable false true