Skip to content

Upgrade Chapter 1 to .NET 10#228

Merged
kamilbaczek merged 9 commits intomainfrom
copilot/upgrade-chapter-1-dotnet-10
Jan 24, 2026
Merged

Upgrade Chapter 1 to .NET 10#228
kamilbaczek merged 9 commits intomainfrom
copilot/upgrade-chapter-1-dotnet-10

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 9, 2025

📋 Description

Upgrades Chapter 1 from .NET 9 to .NET 10. Addresses breaking changes in OpenAPI/Swagger stack and Aspire versioning.

Framework & Core Packages

  • Target framework: net9.0net10.0
  • EF Core, ASP.NET Core packages: 9.0.x10.0.x
  • Aspire packages: 9.0.013.0.2 (Aspire skipped versions 10-12)

CI/CD Pipeline

  • GitHub Actions workflow: Updated to use .NET 10.0.x in both build and test jobs

OpenAPI Stack Breaking Changes

  • Namespace migration: Microsoft.OpenApi.ModelsMicrosoft.OpenApi
  • API deprecation: WithOpenApi(Func<OpenApiOperation, OpenApiOperation>)WithSummary() + WithDescription()
  • Swashbuckle: 9.0.410.0.1 (requires Microsoft.OpenApi >= 2.3.0)

Example endpoint change:

// Before (.NET 9)
.WithOpenApi(operation => new OpenApiOperation(operation)
{
    Summary = "Signs prepared contract",
    Description = "This endpoint is used to sign prepared contract by customer."
})

// After (.NET 10)
.WithSummary("Signs prepared contract")
.WithDescription("This endpoint is used to sign prepared contract by customer.")

📦 PR Includes

  • Feature added 🆕
  • Bug fix 🐛
  • Code refactor 🔄
  • Documentation update 📚
  • Tests added/updated 🧪
  • Other: (describe)

🚫 PR Does Not Include

  • Breaking changes ❌
  • Major architectural changes 🏗️
  • Unrelated features/tasks 🚫

💡 Additional Notes

All tests passing (61/61: 29 unit, 16 architecture, 16 integration). No security vulnerabilities in upgraded dependencies.

Files modified:

  • Directory.Build.props
  • Fitnet.csproj, Fitnet.AppHost.csproj, Fitnet.IntegrationTests.csproj
  • 6 endpoint files for WithOpenApi deprecation
  • .github/workflows/chapter-1-workflow.yml - CI/CD pipeline configuration
Original prompt

upgrade chapter 1 to .NET 10


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 3 commits December 9, 2025 19:48
Co-authored-by: kamilbaczek <74410956+kamilbaczek@users.noreply.github.com>
Co-authored-by: kamilbaczek <74410956+kamilbaczek@users.noreply.github.com>
… 10 compatibility

Co-authored-by: kamilbaczek <74410956+kamilbaczek@users.noreply.github.com>
Copilot AI changed the title [WIP] Upgrade Chapter 1 to .NET 10 Upgrade Chapter 1 to .NET 10 Dec 9, 2025
Copilot AI requested a review from kamilbaczek December 9, 2025 20:17
@kamilbaczek
Copy link
Copy Markdown
Collaborator

@copilot what about pipeline?

Co-authored-by: kamilbaczek <74410956+kamilbaczek@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Dec 12, 2025

@copilot what about pipeline?

Updated the GitHub Actions workflow to use .NET 10.0.x in commit 0659f4b. Both the build and test jobs now use dotnet-version: 10.0.x instead of 9.0.x.

# Conflicts:
#	Chapter-1-initial-architecture/Src/Directory.Build.props
#	Chapter-1-initial-architecture/Src/Fitnet.IntegrationTests/Fitnet.IntegrationTests.csproj
@kamilbaczek kamilbaczek marked this pull request as ready for review January 24, 2026 08:12
@kamilbaczek kamilbaczek mentioned this pull request Jan 24, 2026
9 tasks
@kamilbaczek kamilbaczek merged commit b233f12 into main Jan 24, 2026
2 checks passed
@kamilbaczek kamilbaczek deleted the copilot/upgrade-chapter-1-dotnet-10 branch January 24, 2026 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants