Skip to content

Conversation

@magicxor
Copy link
Owner

Updates the target framework to .NET 10.
Updates nuget package dependencies to their latest versions.

NU1903 warnings are suppressed for now.

Updates the target framework to .NET 10.
Updates nuget package dependencies to their latest versions.

NU1903 warnings are suppressed for now.
Copilot AI review requested due to automatic review settings November 13, 2025 00:42
@magicxor magicxor self-assigned this Nov 13, 2025
@magicxor magicxor added dependencies Pull requests that update a dependency file enhancement labels Nov 13, 2025
Updates the .NET SDK version used in the test workflow to target .NET 10.0, ensuring compatibility and access to the latest features and improvements.
Copilot finished reviewing on behalf of magicxor November 13, 2025 00:45
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR modernizes the codebase by upgrading to .NET 10 and updating NuGet package dependencies to their latest versions. The major architectural change replaces ASP.NET Core's IUrlHelper with a custom ILinkBuilder abstraction that wraps LinkGenerator for better control over URL generation.

Key Changes

  • Updates target framework from net9.0 to net10.0 across all projects
  • Replaces IUrlHelper/IUrlHelperFactory with custom ILinkBuilder service using LinkGenerator
  • Updates 30+ NuGet packages to versions 10.0.0 or their latest releases
  • Switches from AddNLog to AddNLogWeb for better ASP.NET Core integration

Reviewed Changes

Copilot reviewed 54 out of 54 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
Directory.Packages.props Updates all package versions to .NET 10 compatible versions; adds transitive dependency overrides for security
Directory.Build.props Suppresses NU1903 warnings for known vulnerabilities
Hikkaba.Web/Services/Contracts/ILinkBuilder.cs New interface replacing IUrlHelper with LinkGenerator-based approach
Hikkaba.Web/Services/Implementations/LinkBuilder.cs Implementation wrapping LinkGenerator for URL generation
Hikkaba.Web/Services/Contracts/IUrlHelperFactoryWrapper.cs Removed obsolete wrapper interface
Hikkaba.Web/Services/Implementations/UrlHelperFactoryWrapper.cs Removed obsolete wrapper implementation
Hikkaba.Web/Utils/Url/PostUrlUtils.cs Migrated to use ILinkBuilder with FragmentString for anchor links
Hikkaba.Web/Utils/Url/BanUrlUtils.cs Migrated to use ILinkBuilder with FragmentString for anchor links
Hikkaba.Web/Utils/Url/ThreadUrlUtils.cs Migrated to use ILinkBuilder for URL generation
Hikkaba.Web/Extensions/DependencyInjection.cs Updated DI registration to use ILinkBuilder instead of IUrlHelper wrappers
Hikkaba.Web/Program.cs Changed from AddNLog to AddNLogWeb for ASP.NET Core logging
Hikkaba.Web/Views/**/*.cshtml Updated view templates to inject and use ILinkBuilder instead of Url helper
Hikkaba.Tests.Unit/Mocks/FakeLinkGenerator.cs New mock implementation of LinkGenerator for testing
Hikkaba.Tests.Unit/Mocks/FakeHttpContextAccessor.cs New mock for IHttpContextAccessor
Hikkaba.Tests.Unit/Mocks/FakeUrlHelper*.cs Removed obsolete URL helper mocks
Hikkaba.Tests.Unit/CustomAppFactory.cs Updated to register fake LinkGenerator and HttpContextAccessor
Hikkaba.Tests.Unit/Tests/Services/*.cs Updated tests to work with new LinkGenerator-based approach
**/*.csproj Updated all project files to target net10.0 framework
Various controller and service files Removed unused using statements throughout codebase

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@magicxor magicxor merged commit 7ebe30c into master Nov 13, 2025
4 checks passed
@magicxor magicxor deleted the feature/dotnet10 branch November 13, 2025 00:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants