Title: Update all dependencies and .NET to version 9.0 by Copilot · Pull Request #254 · codebytes/DependencyInjectionDemo · GitHub
Open Graph Title: Update all dependencies and .NET to version 9.0 by Copilot · Pull Request #254 · codebytes/DependencyInjectionDemo
X Title: Update all dependencies and .NET to version 9.0 by Copilot · Pull Request #254 · codebytes/DependencyInjectionDemo
Description: Overview
This PR updates the entire solution from .NET 6.0 (which is now out of support) to .NET 9.0, the latest stable version. All NuGet packages have been updated to their latest compatible versions.
Motivation
.NET 6.0 reached end of support and is no longer receiving security updates. The build system was showing warnings:
warning NETSDK1138: The target framework 'net6.0' is out of support and will not receive security updates in the future.
Additionally, many packages were using versions from 2022 and needed to be brought up to date.
Changes Made
Target Framework Updates
All four projects have been updated:
DIDemo (main web application)
DIDemoServices (service library)
DIDemo.Tests (unit tests)
DIDemo.Services.Tests (service tests)
Updated from net6.0 → net9.0
Package Updates
Main Application (DIDemo):
Entity Framework Core packages: 6.0.7 → 9.0.1
Microsoft.Extensions packages: 6.0.0 → 9.0.1
ASP.NET Core packages: 6.0.7 → 9.0.1
Services Library (DIDemoServices):
Configuration abstractions: 6.0.0 → 9.0.1
Newtonsoft.Json: 13.0.1 → 13.0.3
Test Projects:
Microsoft.NET.Test.Sdk: 17.2.0 → 17.12.0
MSTest packages: 2.2.10 → 3.7.0
Code Modernization
Updated Program.cs to use the modern .NET hosting pattern:
Before:
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.UseStartup
Open Graph Description: Overview This PR updates the entire solution from .NET 6.0 (which is now out of support) to .NET 9.0, the latest stable version. All NuGet packages have been updated to their latest compatible vers...
X Description: Overview This PR updates the entire solution from .NET 6.0 (which is now out of support) to .NET 9.0, the latest stable version. All NuGet packages have been updated to their latest compatible vers...
Opengraph URL: https://github.com/codebytes/DependencyInjectionDemo/pull/254
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:c0ad5094-de42-617d-34a5-af64692fcb8c |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E56E:E1A7:CF5F77:11ABB38:698F0B16 |
| html-safe-nonce | ff6b4cb1c90ceb3e5189876a8545003872916f69298e882e87b5cf7649440182 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNTZFOkUxQTc6Q0Y1Rjc3OjExQUJCMzg6Njk4RjBCMTYiLCJ2aXNpdG9yX2lkIjoiMjI0NDA3NDYzMzEwODE0OTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | fa7e2cde3489ef7f8171bd9940387a0245539c78dec1e5a548a7e2be42b7e8ee |
| hovercard-subject-tag | pull_request:2895735209 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/DependencyInjectionDemo/pull/254/files |
| 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 entire solution from .NET 6.0 (which is now out of support) to .NET 9.0, the latest stable version. All NuGet packages have been updated to their latest compatible vers... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2da1a0d1318592c9965539b12269c4641177dfabfc86c3807992efb13e1d96ff |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/codebytes/DependencyInjectionDemo git https://github.com/codebytes/DependencyInjectionDemo.git |
| octolytics-dimension-user_id | 47988 |
| octolytics-dimension-user_login | codebytes |
| octolytics-dimension-repository_id | 171352982 |
| octolytics-dimension-repository_nwo | codebytes/DependencyInjectionDemo |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 171352982 |
| octolytics-dimension-repository_network_root_nwo | codebytes/DependencyInjectionDemo |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 66d26b1a7f81bd3ffe8d0f16abab43f6e64fd21a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width