Skip to content

feat: loosen package versions for .NET6/.NET8#1008

Merged
vbreuss merged 1 commit into
mainfrom
topic/loosen-versions-for-older-tfms
May 14, 2026
Merged

feat: loosen package versions for .NET6/.NET8#1008
vbreuss merged 1 commit into
mainfrom
topic/loosen-versions-for-older-tfms

Conversation

@vbreuss
Copy link
Copy Markdown
Member

@vbreuss vbreuss commented May 14, 2026

This pull request updates package management and configuration for multiple target frameworks, improves dependency alignment, and adjusts warning suppression for test projects. The most important changes are grouped below.

Package versioning and target framework alignment

  • Expanded the conditions for System.Threading.Channels and System.Linq.Async package references in Directory.Packages.props to better align versions with the appropriate target frameworks, including explicit handling for netstandard2.0, netstandard2.1, net8.0, and net9.0. This ensures that each framework uses the most compatible and runtime-aligned package version.
  • Added conditional inclusion of Microsoft.Bcl.Memory for specific target frameworks (net8.0, net9.0, netstandard2.1, netstandard2.0), improving dependency management and avoiding unnecessary package references for other frameworks.

Dependency update automation

  • Updated renovate.json to freeze updates for legacy System.Threading.Channels and System.Linq.Async package versions for certain target frameworks, ensuring these stay aligned with runtime-bundled assemblies and only newer TFM entries are auto-updated.

Build and test configuration

  • Reduced the number of suppressed NuGet warnings in Tests/Directory.Build.props by removing NU1608 from the NoWarn list, allowing these warnings to be surfaced and addressed.

@vbreuss vbreuss self-assigned this May 14, 2026
Copilot AI review requested due to automatic review settings May 14, 2026 12:49
@vbreuss vbreuss added enhancement New feature or request dependencies Update of dependencies labels May 14, 2026
Copy link
Copy Markdown

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 adjusts central package version management and Renovate automation to better align dependency versions with the intended target frameworks, while also tightening test warning visibility.

Changes:

  • Updated Directory.Packages.props to apply System.Threading.Channels, System.Linq.Async, and Microsoft.Bcl.Memory versions conditionally per TFM (including explicit handling for netstandard and net9).
  • Added Renovate rules to freeze legacy version “lines” for System.Threading.Channels and System.Linq.Async while allowing newer TFM entries to keep updating.
  • Removed NU1608 from test projects’ suppressed warnings so version-constraint issues are surfaced.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
Tests/Directory.Build.props Stops suppressing NU1608 in tests to surface dependency-constraint issues.
renovate.json Adds packageRules to freeze specific legacy dependency version lines per package.
Directory.Packages.props Refines per-TFM central versions and loosens exact pins for select packages.

Comment thread Directory.Packages.props
@vbreuss vbreuss enabled auto-merge (squash) May 14, 2026 12:55
@sonarqubecloud
Copy link
Copy Markdown

@vbreuss vbreuss merged commit 1982989 into main May 14, 2026
17 checks passed
@vbreuss vbreuss deleted the topic/loosen-versions-for-older-tfms branch May 14, 2026 13:27
@github-actions
Copy link
Copy Markdown

This is addressed in release v6.3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Update of dependencies enhancement New feature or request state: released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

System.Threading.Channels pinned to 6.0.0

2 participants