Repository navigation
Upgrade Cutter to .NET 10 with Aspire - #2
Open
SakuraIsayeki wants to merge 6 commits into
Open
SakuraIsayeki wants to merge 6 commits into
SakuraIsayeki wants to merge 6 commits into
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Breaking Changes