fix: add System.Memory for .NET Framework test projects#984
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the test build configuration to ensure .NET Framework (net48) test targets explicitly reference System.Memory, with the package version managed centrally, improving restore/build reliability for .NET Framework test runs.
Changes:
- Add a conditional
PackageReferencetoSystem.Memoryfor.NETFrameworktest targets. - Pin
System.Memoryvia central package management inDirectory.Packages.props.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| Tests/Directory.Build.props | Adds System.Memory as a conditional test dependency for .NETFramework targets. |
| Directory.Packages.props | Introduces a centrally-managed version entry for System.Memory. |
|
Test Results 102 files ±0 102 suites ±0 2h 24m 12s ⏱️ - 3m 34s Results for commit 695620f. ± Comparison against base commit e553b06. This pull request removes 109655 and adds 109649 tests. Note that renamed tests count towards both.This pull request removes 12552 skipped tests and adds 12552 skipped tests. Note that renamed tests count towards both. |
|
This is addressed in release v6.1.0. |



This PR updates the test build configuration to ensure .NET Framework (net48) test targets explicitly reference
System.Memory, with the package version managed centrally, improving restore/build reliability for .NET Framework test runs.Changes:
PackageReferencetoSystem.Memoryfor.NETFrameworktest targets.System.Memoryvia central package management inDirectory.Packages.props.