Skip to content

Upgrade Cutter to .NET 10 with Aspire - #2

Open
SakuraIsayeki wants to merge 6 commits into
developfrom
feature/net10-upgrade
Open

SakuraIsayeki wants to merge 6 commits into
developfrom
feature/net10-upgrade

Conversation

@SakuraIsayeki

Copy link
Copy Markdown
Member

Summary

  • Extract the server into a dedicated project and upgrade the application, EF Core, OpenIddict, and supporting packages to .NET 10-compatible versions.
  • Add Aspire orchestration for PostgreSQL, database migrations, GitHub OAuth parameters, and local service telemetry.
  • Centralize OpenTelemetry, health checks, service discovery, resilience, and Serilog configuration in shared service defaults.
  • Replace model-managed seed data with migration SQL to preserve legacy rows during schema upgrades.
  • Add Aspire agent workflow skills and VS Code MCP configuration to improve local development, diagnostics, and deployment guidance.
  • Document the Aspire-based local startup flow and required GitHub OAuth secrets.

Breaking Changes

  • Update references from the former server project and namespaces to the renamed server project and namespace hierarchy.
  • Use .NET 10 and the Aspire CLI/Docker workflow for local development.
  • Open the new XML solution format instead of the removed legacy solution file.

Bump TargetFramework to net10.0 and increment project Version to 2.0.1. Upgrade dependent packages (EFCore, Npgsql, OpenIddict, Serilog, JetBrains.Annotations, Microsoft.Web.LibraryManager.Build, Microsoft.EntityFrameworkCore.Design, etc.) to their .NET 10–compatible releases to align the codebase with the new runtime.
…erviceDefaults

Move/rename the existing web/UI code into a dedicated Nodsoft.Cutter.Server project and update namespaces accordingly. Add a minimal Aspire AppHost project (Nodsoft.Cutter.AppHost) as an entry host and introduce a shared Nodsoft.Cutter.ServiceDefaults library that centralizes hosting defaults (OpenTelemetry, health checks, service discovery, and HTTP client resilience). Replace the old solution file with the new .slnx manifest and add project/launch/config scaffolding for the new layout.

This reorganizes the solution structure and provides reusable hosting defaults for services.
…erilog/OpenTelemetry in ServiceDefaults

Adopt the .NET 10 minimal hosting model in Program.cs: create a bootstrap Serilog logger, use WebApplicationBuilder to register services (controllers, Blazor, EF Core, OpenIddict, authentication/authorization), and start the app with StartAsync/WaitForShutdownAsync. Move OpenIddict client configuration to use builder.Configuration and run DB migrations after app start.

Significantly expand the shared Nodsoft.Cutter.ServiceDefaults library to provide centralized hosting helpers: ConfigureOpenTelemetry/ConfigureOtelSerilog, AddServiceDefaults, AddDefaultHealthChecks, request logging helpers and reverse-proxy configuration. Update package references to newer OpenTelemetry and Serilog packages and add Serilog enrichers/sinks to support the new logging/OTel integrations.

Overall this change upgrades the hosting surface to .NET 10, consolidates logging/OpenTelemetry setup into ServiceDefaults, and updates startup/lifecycle and proxy/forwarded header handling to match the new model.
Configure GitHub OAuth parameters, persistent PostgreSQL storage, database readiness, and EF Core migrations for local Aspire runs. Document the required local setup and credentials.
Provide project-local guidance for Aspire initialization, AppHost wiring, lifecycle management, deployment, monitoring, and Project v2 migrations.
Preserve the legacy link owner and administrator role in historical migrations while removing incompatible model-level seed configuration after the .NET 10 upgrade.
@SakuraIsayeki SakuraIsayeki self-assigned this Oct 2, 2026
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.

1 participant