feat(activity-api): upgrade to .NET 10#161
Merged
willvelida merged 3 commits intomainfrom Mar 6, 2026
Merged
Conversation
Signed-off-by: Will Velida <willvelida@hotmail.co.uk>
Replace Swagger endpoint tests with native OpenAPI endpoint tests. - /swagger -> /openapi/v1.json - /swagger/v1/swagger.json -> /openapi/v1.json agent: github-copilot model: Claude Opus 4.6 contribution: code-generation Signed-off-by: Will Velida <willvelida@hotmail.co.uk>
Add coverage.runsettings to exclude Microsoft.AspNetCore.OpenApi.Generated namespace from coverlet instrumentation. The .NET 10 OpenAPI source generator emits classes that are not unit-testable, dropping coverage from 84% to 33%. - Add runsettings-path input to template-dotnet-run-unit-tests.yml - Point deploy-activity-api.yml at branch template temporarily agent: github-copilot model: Claude Opus 4.6 contribution: code-generation Signed-off-by: Will Velida <willvelida@hotmail.co.uk>
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.
📝 Description
Upgrades the Biotrackr.Activity.Api project (and its test projects) from .NET 9 to .NET 10.
🔗 Related Issues
N/A
🚀 Changes
✨ feat(TFM & NuGet packages)
What: Updated target framework from
net9.0tonet10.0and bumped all NuGet packages to latest versions across all 3 projects.Why: Keep the project on the latest supported .NET version.
📁 Files:
Biotrackr.Activity.Api.csproj,Biotrackr.Activity.Api.UnitTests.csproj,Biotrackr.Activity.Api.IntegrationTests.csproj✨ feat(Built-in OpenAPI)
What: Replaced Swashbuckle with native
AddOpenApi()/MapOpenApi(). RemovedSwashbuckle.AspNetCorepackage andusing Microsoft.OpenApi.Models.Why: Microsoft.OpenApi 2.x (bundled with .NET 10) has breaking namespace changes. Built-in OpenAPI support makes Swashbuckle unnecessary.
📁 Files:
Program.cs(AddOpenApi,MapOpenApi),Biotrackr.Activity.Api.csproj(removed Swashbuckle)🔧 config(Dockerfile)
What: Updated base and SDK image tags from
9.0to10.0.Why: Match the new target framework.
📁 Files:
Dockerfile🔧 config(CI/CD)
What: Updated
DOTNET_VERSIONfrom9.0.xto10.0.x.Why: CI pipeline must use the matching SDK version.
📁 Files:
deploy-activity-api.yml🧹 refactor(Program.cs)
What: Removed
public partial class Program { }andMicrosoft.Extensions.Optionspackage reference.Why: .NET 10 source generator auto-generates the partial class.
Microsoft.Extensions.Optionsis now included transitively (NU1510 warning).📁 Files:
Program.cs,Biotrackr.Activity.Api.csproj🙏 Additional Context
WithOpenApi,ManagedIdentityCredentialconstructor) remain unchanged — out of scope for this PR.