Skip to content

Upgrade project and test dependencies to .NET 11 - #5

Merged
porrey merged 1 commit into
masterfrom
NET11
Nov 24, 2026
Merged

porrey merged 1 commit into
masterfrom
NET11

Conversation

@porrey

@porrey porrey commented Nov 24, 2026

Copy link
Copy Markdown
Owner

Updated target frameworks and test package dependencies for the .NET 11 toolchain.
This pull request updates the target framework and test dependencies for the project to ensure compatibility with newer .NET versions and libraries. The main changes are as follows:

Framework Upgrades:

  • Updated the TargetFramework from net10.0 to net11.0 in all project files: System.DisposableObject, System.DisposableObject.Example, and System.DisposableObject.Tests. [1] [2] [3]

Test Dependency Updates:

  • Upgraded test-related NuGet packages in System.DisposableObject.Tests.csproj:
    • coverlet.collector from 10.0.1 to 10.1.1
    • Microsoft.NET.Test.Sdk from 18.6.0 to 18.12.0
    • xunit.v3 from 3.2.2 to 4.0.3
    • xunit.runner.visualstudio from 3.1.5 to 4.0.1

Updated target frameworks and test package dependencies for the
.NET 11 toolchain.
Copilot AI balanced review requested due to automatic review settings November 24, 2026 19:39
@porrey
porrey merged commit 48c6647 into master Nov 24, 2026
1 of 2 checks passed
@porrey
porrey deleted the NET11 branch November 24, 2026 19:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

CI still installs .NET 10 despite the net11.0 upgrade, and xUnit v3 4.x’s default MTP v2 mode conflicts with the existing VSTest test configuration, blocking builds and tests.

2 open issues
What changed in this PR

This PR moves the library, example application, and test project to .NET 11 and updates the test dependencies.

Changes:

  • Changes all three projects from net10.0 to net11.0.
  • Upgrades Coverlet, Microsoft.NET.Test.Sdk, xUnit, and the Visual Studio test adapter.
File Description
Src/​System.DisposableObject/​System.DisposableObject.csproj Targets the library at .NET 11.
Src/​System.DisposableObject.Tests/​System.DisposableObject.Tests.csproj Targets .NET 11 and upgrades test dependencies.
Src/​System.DisposableObject.Example/​System.DisposableObject.Example.csproj Aligns the example application with .NET 11.

Review effort: Balanced

<PackageReference Include="xunit.v3" Version="3.2.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.12.0" />
<PackageReference Include="xunit.v3" Version="4.0.3" />

<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<TargetFramework>net11.0</TargetFramework>
@porrey
porrey restored the NET11 branch November 24, 2026 19:56
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