Skip to content

Upgrade to .NET 9 and update related configurations#696

Merged
StuartFerguson merged 10 commits intomasterfrom
task/#689_net9_upgrade
Jun 4, 2025
Merged

Upgrade to .NET 9 and update related configurations#696
StuartFerguson merged 10 commits intomasterfrom
task/#689_net9_upgrade

Conversation

@StuartFerguson
Copy link
Copy Markdown
Member

  • Updated GitHub Actions workflows to install .NET 9.
  • Changed target framework from net8.0 to net9.0 in multiple project files.
  • Updated package references to latest versions compatible with .NET 9.
  • Modified Dockerfiles to use .NET SDK 9 base images.
  • Added configuration for in-memory database in unit tests.
  • Updated integration test feature files for namespace changes and compatibility.

Closes #689

- Updated GitHub Actions workflows to install .NET 9.
- Changed target framework from `net8.0` to `net9.0` in multiple project files.
- Updated package references to latest versions compatible with .NET 9.
- Modified Dockerfiles to use .NET SDK 9 base images.
- Added configuration for in-memory database in unit tests.
- Updated integration test feature files for namespace changes and compatibility.
Updated the base and build images in `Dockerfile` and `DockerfileWindows` from .NET 8.0 to .NET 9.0. This upgrade includes new features, performance improvements, and security updates.
Changed `<TargetFrameworks>` to `<TargetFramework>` in `SecurityService.csproj` to specify that the project now targets only `net9.0`.
- Removed `Pomelo.EntityFrameworkCore.MySql` from unit tests.
- Added `using Microsoft.Extensions.Logging;` in `StartupExtensions.cs`.
- Updated `AddIdentityServerStorage` to include sensitive data logging and console logging.
- Enhanced `AddDbContext<AuthenticationDbContext>` with similar logging capabilities.
- Added logging statements in UserRequestHandler for better tracking of password change operations.
- Updated connection strings in DockerHelper for improved organization and added AuthenticationDbContext.
- Refined formatting and error handling in OnPost method of Index.cshtml.cs.
- Simplified in-memory database condition check in IdentityServerRegistry.
Uncommented the `--headless` argument in `Hooks.cs`
to allow the Chrome browser to run in headless mode.
This change facilitates automated testing by running
the browser without a graphical user interface.
Added connection strings for `PersistedGrantDbContext`, `ConfigurationDbContext`, and `AuthenticationDbContext` using the `SetConnectionString` method. The connection strings are dynamically named based on `TestId` and utilize the `UseSecureSqlServerDatabase` property.
@StuartFerguson StuartFerguson merged commit 27ece1f into master Jun 4, 2025
17 of 20 checks passed
@github-actions github-actions Bot deleted the task/#689_net9_upgrade branch August 4, 2025 01:54
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