Skip to content

Upgrade to .NET 10.0 and fix deprecation warnings#155

Merged
JimKerslake merged 1 commit into
developfrom
net10.0
Mar 9, 2026
Merged

Upgrade to .NET 10.0 and fix deprecation warnings#155
JimKerslake merged 1 commit into
developfrom
net10.0

Conversation

@JimKerslake
Copy link
Copy Markdown
Collaborator

Framework upgrade:

  • Update 4 library projects from net8.0 to net10.0
  • Update NavigationDemo.Web to net10.0
  • Update test project to net10.0
  • Update package version to 10.0.0
  • Update cloudscribe.Web.Localization dependency to 10.0.0
  • Update Microsoft.Extensions.* packages to 10.0.0
  • Update test dependencies to latest versions

Fix ASPDEPR006 - IActionContextAccessor deprecation:

  • Replace IActionContextAccessor with ViewContext in ViewComponents
  • NavigationViewComponent: Use ViewContext instead of injected IActionContextAccessor
  • CachingNavigationViewComponent: Use ViewContext instead of injected IActionContextAccessor
  • NavigationTreeSiteMapNodeService: Create ActionContext from IHttpContextAccessor
  • Remove IActionContextAccessor DI registration from ServiceCollectionExtensions
  • Add Microsoft.AspNetCore.Routing using statement

Fix ASP5001 - SetCompatibilityVersion obsolete:

  • Remove obsolete SetCompatibilityVersion call from NavigationDemo.Web/Startup.cs

Note: RazorPages.WebApp (legacy .NET Core 3.0) not upgraded

Build: Success (0 errors, 0 deprecation warnings)
Tests: N/A (test project has no tests)

Framework upgrade:
- Update 4 library projects from net8.0 to net10.0
- Update NavigationDemo.Web to net10.0
- Update test project to net10.0
- Update package version to 10.0.0
- Update cloudscribe.Web.Localization dependency to 10.0.0
- Update Microsoft.Extensions.* packages to 10.0.0
- Update test dependencies to latest versions

Fix ASPDEPR006 - IActionContextAccessor deprecation:
- Replace IActionContextAccessor with ViewContext in ViewComponents
- NavigationViewComponent: Use ViewContext instead of injected IActionContextAccessor
- CachingNavigationViewComponent: Use ViewContext instead of injected IActionContextAccessor
- NavigationTreeSiteMapNodeService: Create ActionContext from IHttpContextAccessor
- Remove IActionContextAccessor DI registration from ServiceCollectionExtensions
- Add Microsoft.AspNetCore.Routing using statement

Fix ASP5001 - SetCompatibilityVersion obsolete:
- Remove obsolete SetCompatibilityVersion call from NavigationDemo.Web/Startup.cs

Note: RazorPages.WebApp (legacy .NET Core 3.0) not upgraded

Build: Success (0 errors, 0 deprecation warnings)
Tests: N/A (test project has no tests)
@JimKerslake JimKerslake merged commit 40a14a2 into develop Mar 9, 2026
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.

2 participants