Title: Update .NET to 9.0 and all dependencies to latest versions by Copilot · Pull Request #13 · codebytes/UnitTestingDemo · GitHub
Open Graph Title: Update .NET to 9.0 and all dependencies to latest versions by Copilot · Pull Request #13 · codebytes/UnitTestingDemo
X Title: Update .NET to 9.0 and all dependencies to latest versions by Copilot · Pull Request #13 · codebytes/UnitTestingDemo
Description: Overview
This PR updates the project from .NET 6.0 (which is out of support) to .NET 9.0 (the latest stable version) and updates all NuGet package dependencies to their latest compatible versions.
Motivation
.NET 6.0 reached end-of-support and is no longer receiving security updates. The build was generating warnings:
warning NETSDK1138: The target framework 'net6.0' is out of support and will not receive
security updates in the future. Please refer to https://aka.ms/dotnet-core-support for
more information about the support policy.
Additionally, several packages were multiple major versions behind their latest releases.
Changes Made
.NET Framework
Updated from: .NET 6.0 → to: .NET 9.0
Updated global.json SDK version from 3.1.0 to 9.0.0
Updated all project TargetFramework properties from net6.0 to net9.0
Package Updates
Entity Framework Core (7.0.4 → 9.0.9)
Microsoft.EntityFrameworkCore
Microsoft.EntityFrameworkCore.Relational
Microsoft.EntityFrameworkCore.SqlServer
Microsoft.EntityFrameworkCore.Tools
Microsoft.EntityFrameworkCore.InMemory
Development Tools
Microsoft.VisualStudio.Web.CodeGeneration.Design: 6.0.13 → 9.0.0
Testing Packages
Microsoft.NET.Test.Sdk: 17.5.0 → 17.12.0
MSTest.TestAdapter: 3.0.2 → 3.7.0
MSTest.TestFramework: 3.0.2 → 3.7.0
Moq: 4.18.4 → 4.20.72
coverlet.collector: 3.2.0 → 6.0.2
Note: EntityFrameworkCoreMock.Moq remains at 2.4.0 as it continues to work correctly with the updated EF Core version and all tests pass.
Testing
✅ All 20 existing tests pass successfully:
UnitTestingDemo.Services.Tests: 4 tests passed
UnitTestingDemo.Tests: 3 tests passed
UnitTestingDemo.Data.Tests: 13 tests passed
✅ Build completes successfully with 0 warnings and 0 errors in both Debug and Release configurations.
Impact
Security: Project now runs on a supported .NET version receiving active security updates
Performance: Benefits from .NET 9.0 performance improvements
Compatibility: All dependencies are current and compatible
Breaking Changes: None - this is a purely infrastructure update with no code changes required
Files Modified
Total: 8 files changed, 30 insertions(+), 30 deletions(-)
global.json
src/UnitTestingDemo/UnitTestingDemo.csproj
src/UnitTestingDemo.Data/UnitTestingDemo.Data.csproj
src/UnitTestingDemo.Services/UnitTestingDemo.Services.csproj
src/UnitTestingDemo.Domain/UnitTestingDemo.Domain.csproj
tests/UnitTestingDemo.Tests/UnitTestingDemo.Tests.csproj
tests/UnitTestingDemo.Data.Tests/UnitTestingDemo.Data.Tests.csproj
tests/UnitTestingDemo.Services.Tests/UnitTestingDemo.Services.Tests.csproj
Closes #[issue_number]
Original prompt
This section details on the original issue you should resolve
Open Graph Description: Overview This PR updates the project from .NET 6.0 (which is out of support) to .NET 9.0 (the latest stable version) and updates all NuGet package dependencies to their latest compatible versions. ...
X Description: Overview This PR updates the project from .NET 6.0 (which is out of support) to .NET 9.0 (the latest stable version) and updates all NuGet package dependencies to their latest compatible versions. ...
Opengraph URL: https://github.com/codebytes/UnitTestingDemo/pull/13
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:f86fca14-064d-28f3-e85d-a08438884c29 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | C52E:8460E:847DEA:8FDF93:698FA5F2 |
| html-safe-nonce | 704702195b77c3786c2bc40c9336a9bab7ca21ea6c2e927b6162631218434170 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTJFOjg0NjBFOjg0N0RFQTo4RkRGOTM6Njk4RkE1RjIiLCJ2aXNpdG9yX2lkIjoiNzA3NzAwNjk1OTAyMzQ2NTk3MCIsInJlZ2lvbl9lZGdlIjoic2VhIiwicmVnaW9uX3JlbmRlciI6InNlYSJ9 |
| visitor-hmac | 7058f01ca3f1692da05ef1c4fc54598b3daff94eb7210d49be88d13fc75755f5 |
| hovercard-subject-tag | pull_request:2895736052 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/codebytes/UnitTestingDemo/pull/13/checks |
| twitter:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| og:image:alt | Overview This PR updates the project from .NET 6.0 (which is out of support) to .NET 9.0 (the latest stable version) and updates all NuGet package dependencies to their latest compatible versions. ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | ff0b5286b4f7cd2eb22d357a0ae8fb9a0ae1eaf6abfbae7410c3b315d16414e1 |
| turbo-cache-control | no-preview |
| go-import | github.com/codebytes/UnitTestingDemo git https://github.com/codebytes/UnitTestingDemo.git |
| octolytics-dimension-user_id | 47988 |
| octolytics-dimension-user_login | codebytes |
| octolytics-dimension-repository_id | 171369837 |
| octolytics-dimension-repository_nwo | codebytes/UnitTestingDemo |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 171369837 |
| octolytics-dimension-repository_network_root_nwo | codebytes/UnitTestingDemo |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5268d66f533eb3b2e65a6a398a739f35827fd64a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width