Upgrade to .NET 9.0 and update dependencies#332
Merged
StuartFerguson merged 2 commits intomasterfrom Jun 1, 2025
Merged
Conversation
Updated the codebase to target .NET 9.0 across multiple project files, including `pullrequest.yml` and various `.csproj` files. Key package references such as `AspNetCore.HealthChecks.Uris`, `Microsoft.EntityFrameworkCore`, and `NLog` have been upgraded to their respective versions compatible with .NET 9.0. Refactored test methods in `MiddlewareTests.cs` to use `Task` for asynchronous operations and modified the `BaseDockerHelper` class to use `CreateToStreamAsync` for persistent subscriptions. Simplified the `ThrowIfInvalidGuid` method in `Guard.cs` by removing unnecessary null checks. These changes enhance compatibility and leverage new features in the latest framework version.
This commit adds a step to install .NET version 9.x in both the `createrelease.yml` and `pullrequest.yml` workflow files. The installation uses the `actions/setup-dotnet@v4.0.1` action and is positioned before the NuGet package restoration, ensuring the necessary .NET environment is ready for subsequent build processes.
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.
Updated the codebase to target .NET 9.0 across multiple project files, including
pullrequest.ymland various.csprojfiles. Key package references such asAspNetCore.HealthChecks.Uris,Microsoft.EntityFrameworkCore, andNLoghave been upgraded to their respective versions compatible with .NET 9.0.Refactored test methods in
MiddlewareTests.csto useTaskfor asynchronous operations and modified theBaseDockerHelperclass to useCreateToStreamAsyncfor persistent subscriptions. Simplified theThrowIfInvalidGuidmethod inGuard.csby removing unnecessary null checks.These changes enhance compatibility and leverage new features in the latest framework version.
Closes #331