Repository navigation
Conversation
Updated target frameworks and test package dependencies for the .NET 11 toolchain.
There was a problem hiding this comment.
🟡 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.0tonet11.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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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:
TargetFrameworkfromnet10.0tonet11.0in all project files:System.DisposableObject,System.DisposableObject.Example, andSystem.DisposableObject.Tests. [1] [2] [3]Test Dependency Updates:
System.DisposableObject.Tests.csproj:coverlet.collectorfrom10.0.1to10.1.1Microsoft.NET.Test.Sdkfrom18.6.0to18.12.0xunit.v3from3.2.2to4.0.3xunit.runner.visualstudiofrom3.1.5to4.0.1