Skip to content

Upgrade to .NET 9.0 and update dependencies#332

Merged
StuartFerguson merged 2 commits intomasterfrom
task/331_net9_upgrade
Jun 1, 2025
Merged

Upgrade to .NET 9.0 and update dependencies#332
StuartFerguson merged 2 commits intomasterfrom
task/331_net9_upgrade

Conversation

@StuartFerguson
Copy link
Copy Markdown
Member

@StuartFerguson StuartFerguson commented Jun 1, 2025

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.

Closes #331

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.
@StuartFerguson StuartFerguson merged commit e7dccb3 into master Jun 1, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade to Net 9

1 participant