Skip to content

Conversation

@arturcic
Copy link
Member

This pull request updates the target framework version for all build and run configuration files in the build/.run directory from .NET 9.0 to .NET 10.0. This change ensures that all build, test, and deployment processes use the latest .NET runtime.

Updates the latest .NET LTS version to 10.0.
Includes .NET 8.0 in the supported versions array.
Sets the latest Docker distribution to Ubuntu 24.04.
updates the target framework moniker to .net 10.0 for all build configurations.
updates the target framework to net10.0 for the cli.
adds net10.0 as a target framework to msbuild.
Renames `TagPrefix` to `TagPrefixPattern` for clarity.
Refactors the `ReferenceNameExtensions` to use extension methods for improved code organization.
@arturcic arturcic force-pushed the feature/dotnet10 branch 2 times, most recently from bf5338c to bfb002a Compare November 13, 2025 22:07
updates test project to target .net 10.
@arturcic arturcic changed the title Feature/dotnet10 Upgrade to dotnet10 Nov 13, 2025
suppresses S4136 in multiple projects to avoid noisy warnings related to method overloads.
@arturcic arturcic marked this pull request as ready for review November 13, 2025 22:44
Copilot AI review requested due to automatic review settings November 13, 2025 22:44
Copilot finished reviewing on behalf of arturcic November 13, 2025 22:46
Copy link

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 updates the codebase to support .NET 10.0, featuring a major refactoring to adopt C# extension syntax (expected in a future C# version). The changes include:

  • Adds .NET 10.0 target framework support alongside .NET 8.0 and .NET 9.0
  • Refactors traditional extension methods to use new extension() syntax
  • Renames TagPrefix property to TagPrefixPattern for consistency
  • Adds IsMergeCommit property to ICommit interface, replacing extension method
  • Updates test infrastructure and build configurations for .NET 10.0
  • Reorganizes test files (splits InputSanitizerTests into separate files)

Reviewed Changes

Copilot reviewed 133 out of 133 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/Directory.Build.props Adds net10.0 target framework and suppresses nullable warnings
src/GitVersion.Core/Git/ICommit.cs Adds IsMergeCommit property to interface
src/GitVersion.Core/Extensions/*.cs Converts extension methods to new extension() syntax
src/GitVersion.Core/Configuration/EffectiveConfiguration.cs Renames TagPrefix to TagPrefixPattern
new-cli/GitVersion.Cli.Generator.Tests/Extensions.cs Creates Net10 reference assemblies helper
build/.run/*.xml Updates run configurations to net10.0
tests/scripts/test-msbuild-task.sh Updates comment with net10.0
Comments suppressed due to low confidence (1)

src/GitVersion.Core/VersionCalculation/VersionSearchStrategies/VersionInBranchNameVersionStrategy.cs:58


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

@sonarqubecloud
Copy link

@arturcic arturcic linked an issue Nov 13, 2025 that may be closed by this pull request
5 tasks
@arturcic arturcic merged commit 6642a41 into GitTools:main Nov 13, 2025
120 checks passed
@arturcic arturcic deleted the feature/dotnet10 branch November 13, 2025 23:45
@mergify
Copy link
Contributor

mergify bot commented Nov 13, 2025

Thank you @arturcic for your contribution!

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.

[ISSUE]: Update to dotnet 10

1 participant