Skip to content

Updates target frameworks to .NET 8 and 9#905

Merged
edumserrano merged 9 commits intomainfrom
updates
May 25, 2025
Merged

Updates target frameworks to .NET 8 and 9#905
edumserrano merged 9 commits intomainfrom
updates

Conversation

@edumserrano
Copy link
Owner

@edumserrano edumserrano commented May 25, 2025

  • Upgrades the project to target only .NET 8 and .NET 9.
  • Update all NuGet packages to latest versions except for Shouldly. Didn't update all so that I can test if dependabot will create a PR to update Shouldly.
  • Introduces central package management for better dependency control.
  • Updates NuGet packages to latest versions.
  • Deleted the global.json.
  • Added 429 status code as a valid response for markdown-link-check due to errors from GitHub rate limiting. Updated markdown-link-check config as per its docs.

NOTE: Did not convert the solution file to the .slnx format because it causes a breaking change in how I'm using the WebApplicationFactory and causes tests to fail. This needs to be investigated and fixed before adopting the new .slnx format.

Removes the global.json file, which is no longer needed.
Updates the target frameworks for all projects to .NET 8 and .NET 9.

This ensures that the libraries and tests are compatible with the latest .NET releases.
Updates the solution file to the newer .slnx format, which is a simplified XML-based format.

This change also updates the project's tooling, CI workflows, and documentation to use the new .slnx solution file.
Updates the markdown link check configuration to consider 429
status codes as acceptable.

This prevents false positives when GitHub's API rate limiting
is triggered during the link checking process.
Removes the `.UseSolutionRelativeContentRoot` configuration
from the `HttpResponseMockingWebApplicationFactory` as it is
no longer needed and simplifies the content root configuration.
@github-actions
Copy link

github-actions bot commented May 25, 2025

Test runs on ubuntu-latest for commit 475fb85

✔️ Pass - DotNet.Sdk.Extensions.Testing.Tests.dll on .NETCoreApp,Version=v8.0 ---- ## Run Summary

Overall Result: ✔️ Pass
Pass Rate: 100%
Total Tests: 145

Date: 2025-05-25 19:02:34 - 2025-05-25 19:02:35
Run Duration: 1s 921ms

GitHub Runner OS: ubuntu-latest
Operating System: Ubuntu 24.04.2 LTS
Framework: .NETCoreApp,Version=v8.0
Assembly: DotNet.Sdk.Extensions.Testing.Tests.dll

✔️ Passed ❌ Failed ⚠️ Skipped
145 0 0
100% 0% 0%
## Run Messages
Informational
 [xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v3.1.0+00ab0a9ec4 (64-bit .NET 8.0.16) [xUnit.net 00:00:00.14]   Discovering: DotNet.Sdk.Extensions.Testing.Tests [xUnit.net 00:00:00.30]   Discovered:  DotNet.Sdk.Extensions.Testing.Tests [xUnit.net 00:00:00.34]   Starting:    DotNet.Sdk.Extensions.Testing.Tests warn: Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer[8]       The ASP.NET Core developer certificate is not trusted. For information about trusting the ASP.NET Core developer certificate, see https://aka.ms/aspnet/https-trust-dev-cert. [xUnit.net 00:00:01.33]   Finished:    DotNet.Sdk.Extensions.Testing.Tests 
----
✔️ Pass - DotNet.Sdk.Extensions.Tests.dll on .NETCoreApp,Version=v8.0 ---- ## Run Summary

Overall Result: ✔️ Pass
Pass Rate: 100%
Total Tests: 150

Date: 2025-05-25 19:02:36 - 2025-05-25 19:02:46
Run Duration: 9s 679ms

GitHub Runner OS: ubuntu-latest
Operating System: Ubuntu 24.04.2 LTS
Framework: .NETCoreApp,Version=v8.0
Assembly: DotNet.Sdk.Extensions.Tests.dll

✔️ Passed ❌ Failed ⚠️ Skipped
150 0 0
100% 0% 0%
## Run Messages
Informational
 [xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v3.1.0+00ab0a9ec4 (64-bit .NET 8.0.16) [xUnit.net 00:00:00.09]   Discovering: DotNet.Sdk.Extensions.Tests [xUnit.net 00:00:00.18]   Discovered:  DotNet.Sdk.Extensions.Tests [xUnit.net 00:00:00.23]   Starting:    DotNet.Sdk.Extensions.Tests [xUnit.net 00:00:09.23]   Finished:    DotNet.Sdk.Extensions.Tests 
----
✔️ Pass - DotNet.Sdk.Extensions.Testing.Tests.dll on .NETCoreApp,Version=v9.0 ---- ## Run Summary

Overall Result: ✔️ Pass
Pass Rate: 100%
Total Tests: 145

Date: 2025-05-25 19:02:48 - 2025-05-25 19:02:49
Run Duration: 1s 752ms

GitHub Runner OS: ubuntu-latest
Operating System: Ubuntu 24.04.2 LTS
Framework: .NETCoreApp,Version=v9.0
Assembly: DotNet.Sdk.Extensions.Testing.Tests.dll

✔️ Passed ❌ Failed ⚠️ Skipped
145 0 0
100% 0% 0%
## Run Messages
Informational
 [xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v3.1.0+00ab0a9ec4 (64-bit .NET 9.0.5) [xUnit.net 00:00:00.09]   Discovering: DotNet.Sdk.Extensions.Testing.Tests [xUnit.net 00:00:00.21]   Discovered:  DotNet.Sdk.Extensions.Testing.Tests [xUnit.net 00:00:00.24]   Starting:    DotNet.Sdk.Extensions.Testing.Tests warn: Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer[8]       The ASP.NET Core developer certificate is not trusted. For information about trusting the ASP.NET Core developer certificate, see https://aka.ms/aspnet/https-trust-dev-cert [xUnit.net 00:00:01.31]   Finished:    DotNet.Sdk.Extensions.Testing.Tests 
----
✔️ Pass - DotNet.Sdk.Extensions.Tests.dll on .NETCoreApp,Version=v9.0 ---- ## Run Summary

Overall Result: ✔️ Pass
Pass Rate: 100%
Total Tests: 150

Date: 2025-05-25 19:02:50 - 2025-05-25 19:03:01
Run Duration: 10s 946ms

GitHub Runner OS: ubuntu-latest
Operating System: Ubuntu 24.04.2 LTS
Framework: .NETCoreApp,Version=v9.0
Assembly: DotNet.Sdk.Extensions.Tests.dll

✔️ Passed ❌ Failed ⚠️ Skipped
150 0 0
100% 0% 0%
## Run Messages
Informational
 [xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v3.1.0+00ab0a9ec4 (64-bit .NET 9.0.5) [xUnit.net 00:00:00.09]   Discovering: DotNet.Sdk.Extensions.Tests [xUnit.net 00:00:00.19]   Discovered:  DotNet.Sdk.Extensions.Tests [xUnit.net 00:00:00.24]   Starting:    DotNet.Sdk.Extensions.Tests [xUnit.net 00:00:10.51]   Finished:    DotNet.Sdk.Extensions.Tests 
----

@github-actions
Copy link

github-actions bot commented May 25, 2025

Test runs on windows-latest for commit 475fb85

✔️ Pass - DotNet.Sdk.Extensions.Testing.Tests.dll on .NETCoreApp,Version=v8.0 ---- ## Run Summary

Overall Result: ✔️ Pass
Pass Rate: 100%
Total Tests: 145

Date: 2025-05-25 19:03:12 - 2025-05-25 19:03:14
Run Duration: 2s 9ms

GitHub Runner OS: windows-latest
Operating System: Microsoft Windows 10.0.20348
Framework: .NETCoreApp,Version=v8.0
Assembly: DotNet.Sdk.Extensions.Testing.Tests.dll

✔️ Passed ❌ Failed ⚠️ Skipped
145 0 0
100% 0% 0%
## Run Messages
Informational
 [xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v3.1.0+00ab0a9ec4 (64-bit .NET 8.0.16) [xUnit.net 00:00:00.11]   Discovering: DotNet.Sdk.Extensions.Testing.Tests [xUnit.net 00:00:00.28]   Discovered:  DotNet.Sdk.Extensions.Testing.Tests [xUnit.net 00:00:00.32]   Starting:    DotNet.Sdk.Extensions.Testing.Tests warn: Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer[8]       The ASP.NET Core developer certificate is not trusted. For information about trusting the ASP.NET Core developer certificate, see https://aka.ms/aspnet/https-trust-dev-cert. [xUnit.net 00:00:01.43]   Finished:    DotNet.Sdk.Extensions.Testing.Tests 
----
✔️ Pass - DotNet.Sdk.Extensions.Tests.dll on .NETCoreApp,Version=v8.0 ---- ## Run Summary

Overall Result: ✔️ Pass
Pass Rate: 100%
Total Tests: 150

Date: 2025-05-25 19:03:15 - 2025-05-25 19:03:25
Run Duration: 9s 909ms

GitHub Runner OS: windows-latest
Operating System: Microsoft Windows 10.0.20348
Framework: .NETCoreApp,Version=v8.0
Assembly: DotNet.Sdk.Extensions.Tests.dll

✔️ Passed ❌ Failed ⚠️ Skipped
150 0 0
100% 0% 0%
## Run Messages
Informational
 [xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v3.1.0+00ab0a9ec4 (64-bit .NET 8.0.16) [xUnit.net 00:00:00.12]   Discovering: DotNet.Sdk.Extensions.Tests [xUnit.net 00:00:00.22]   Discovered:  DotNet.Sdk.Extensions.Tests [xUnit.net 00:00:00.30]   Starting:    DotNet.Sdk.Extensions.Tests [xUnit.net 00:00:09.35]   Finished:    DotNet.Sdk.Extensions.Tests 
----
✔️ Pass - DotNet.Sdk.Extensions.Testing.Tests.dll on .NETCoreApp,Version=v9.0 ---- ## Run Summary

Overall Result: ✔️ Pass
Pass Rate: 100%
Total Tests: 145

Date: 2025-05-25 19:03:27 - 2025-05-25 19:03:29
Run Duration: 1s 894ms

GitHub Runner OS: windows-latest
Operating System: Microsoft Windows 10.0.20348
Framework: .NETCoreApp,Version=v9.0
Assembly: DotNet.Sdk.Extensions.Testing.Tests.dll

✔️ Passed ❌ Failed ⚠️ Skipped
145 0 0
100% 0% 0%
## Run Messages
Informational
 [xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v3.1.0+00ab0a9ec4 (64-bit .NET 9.0.5) [xUnit.net 00:00:00.09]   Discovering: DotNet.Sdk.Extensions.Testing.Tests [xUnit.net 00:00:00.21]   Discovered:  DotNet.Sdk.Extensions.Testing.Tests [xUnit.net 00:00:00.24]   Starting:    DotNet.Sdk.Extensions.Testing.Tests warn: Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer[8]       The ASP.NET Core developer certificate is not trusted. For information about trusting the ASP.NET Core developer certificate, see https://aka.ms/aspnet/https-trust-dev-cert [xUnit.net 00:00:01.41]   Finished:    DotNet.Sdk.Extensions.Testing.Tests 
----
✔️ Pass - DotNet.Sdk.Extensions.Tests.dll on .NETCoreApp,Version=v9.0 ---- ## Run Summary

Overall Result: ✔️ Pass
Pass Rate: 100%
Total Tests: 150

Date: 2025-05-25 19:03:29 - 2025-05-25 19:03:39
Run Duration: 9s 712ms

GitHub Runner OS: windows-latest
Operating System: Microsoft Windows 10.0.20348
Framework: .NETCoreApp,Version=v9.0
Assembly: DotNet.Sdk.Extensions.Tests.dll

✔️ Passed ❌ Failed ⚠️ Skipped
150 0 0
100% 0% 0%
## Run Messages
Informational
 [xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v3.1.0+00ab0a9ec4 (64-bit .NET 9.0.5) [xUnit.net 00:00:00.11]   Discovering: DotNet.Sdk.Extensions.Tests [xUnit.net 00:00:00.19]   Discovered:  DotNet.Sdk.Extensions.Tests [xUnit.net 00:00:00.25]   Starting:    DotNet.Sdk.Extensions.Tests [xUnit.net 00:00:09.23]   Finished:    DotNet.Sdk.Extensions.Tests 
----

@codecov
Copy link

codecov bot commented May 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.66%. Comparing base (fb7b8ab) to head (475fb85).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #905   +/-   ##
=======================================
  Coverage   94.66%   94.66%           
=======================================
  Files          76       76           
  Lines        1293     1293           
  Branches      107      107           
=======================================
  Hits         1224     1224           
  Misses         43       43           
  Partials       26       26           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Migrates to central package management for dependency versioning.

This change introduces a `Directory.Packages.props` file to manage
package versions centrally, and removes version numbers from
`Directory.Build.props` and project files. This ensures consistency
across the solution and simplifies dependency updates.

Also updates the documentation links to point to the correct tag.
Updates multiple NuGet package versions to their latest stable releases.

This ensures that the project benefits from the latest features, bug fixes, and performance improvements provided by these libraries.

The updated packages include analyzer and testing libraries.
@edumserrano edumserrano enabled auto-merge (squash) May 25, 2025 19:02
@edumserrano edumserrano merged commit ea0b3b4 into main May 25, 2025
9 checks passed
@edumserrano edumserrano deleted the updates branch May 25, 2025 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant