Skip to content

Upgrade Project to .NET 10#91

Merged
erwan-joly merged 12 commits intomasterfrom
claude/upgrade-dotnet-10-01BcetFyyVBD62HhVeqkRVdU
Nov 15, 2025
Merged

Upgrade Project to .NET 10#91
erwan-joly merged 12 commits intomasterfrom
claude/upgrade-dotnet-10-01BcetFyyVBD62HhVeqkRVdU

Conversation

@erwan-joly
Copy link
Contributor

  • Updated target framework from net8.0 to net10.0 in main project
  • Updated target framework from net8.0 to net10.0 in test project
  • Updated GitHub Actions workflow to use .NET 10.0.x

- Updated target framework from net8.0 to net10.0 in main project
- Updated target framework from net8.0 to net10.0 in test project
- Updated GitHub Actions workflow to use .NET 10.0.x
Main project:
- DotNetty.* packages: 0.7.5 -> 0.7.6
- NodaTime: 3.1.9 -> 3.2.0

Test project:
- ApprovalTests: 6.0.0 -> 7.0.0
- coverlet.collector: 6.0.0 -> 6.0.2
- Microsoft.AspNet.WebApi.Client: 6.0.0 -> 6.0.2
- Microsoft.NET.Test.Sdk: 17.8.0 -> 17.12.0
- Moq: 4.20.69 -> 4.20.72
- MSTest.TestAdapter: 3.1.1 -> 3.6.3
- MSTest.TestFramework: 3.1.1 -> 3.6.3
- NodaTime.Testing: 3.1.9 -> 3.2.0
- Updated actions/checkout from v2 to v4
- Updated actions/setup-dotnet from v3 to v4
- Replaced deprecated set-output commands with $GITHUB_OUTPUT
- Replaced deprecated actions/upload-release-asset@v1 with softprops/action-gh-release@v2
- Removed obsolete jossef/action-latest-release-info dependency
- Fixed GITHUB_TOKEN reference to use secrets.GITHUB_TOKEN
- Replaced Assert.IsTrue with SequenceEqual with CollectionAssert.AreEqual
- This is the recommended approach for comparing collections in MSTest
- Removed unused System.Linq using statement
- Removed CS1591 warning suppression from project file
- Added XML documentation comments to all 27 source files
- Documented 140+ public types, methods, properties, and constructors
- Includes summary tags, param tags, and returns tags
- Documentation follows best practices for API consumers

This enables proper IntelliSense support and API documentation generation.
The comprehensive XML documentation is valuable but not required
for build success. Restoring NoWarn to allow builds without
documentation warnings.
- Fixed typo in test csproj: TreatWrningsAsErrors -> TreatWarningsAsErrors
- Removed unused Castle.Core.Logging import from SpanRequestFilterTest.cs

These fixes ensure warnings are properly treated as errors and clean up unused dependencies.
- Explicitly specify .NET 10.0.0 version
- Add manual installation fallback using dotnet-install.sh
- This handles cases where setup-dotnet@v4 doesn't have .NET 10 yet

.NET 10 was just released on Nov 11, 2025, so it may not be in the
setup-dotnet action's manifest yet. This ensures the workflow succeeds
regardless.
- Microsoft.NET.Test.Sdk: 17.12.0 → 18.0.1
- MSTest.TestAdapter: 3.6.3 → 4.0.2
- MSTest.TestFramework: 3.6.3 → 4.0.2
- coverlet.collector: 6.0.2 → 6.0.4

All packages updated to versions released on or after November 11, 2025,
ensuring full compatibility with .NET 10.
- Fixed Microsoft.AspNet.WebApi.Client: 6.0.2 (doesn't exist) → 6.0.0
- Added Microsoft.IdentityModel.JsonWebTokens 8.14.0 to fix GHSA-59j7-ghrg-fj52 vulnerability
- Added System.IdentityModel.Tokens.Jwt 8.14.0 to fix GHSA-59j7-ghrg-fj52 vulnerability

These explicit package references override the vulnerable 7.0.3 versions
that were coming in as transitive dependencies.
- MSTEST0001: Enable test parallelization at method level
- MSTEST0044: Replace obsolete DataTestMethod with TestMethod (2 occurrences)

MSTest 4.0 requires explicit parallelization configuration and no longer
uses DataTestMethod - TestMethod with DataRow attributes is the new pattern.
- Removed invalid AssemblyAttribute from csproj
- Created AssemblyInfo.cs with proper Parallelize attribute
- This fixes MSB3715 error where ExecutionScope type was not found

MSTest 4.0 requires assembly-level parallelization to be configured
via code, not project file attributes.
@erwan-joly erwan-joly merged commit cff65cb into master Nov 15, 2025
1 of 2 checks passed
@erwan-joly erwan-joly deleted the claude/upgrade-dotnet-10-01BcetFyyVBD62HhVeqkRVdU branch November 15, 2025 05:30
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