Skip to content

Update TFM version compatibility behavior to correctly handle CsWinRT 3.0 .1 TFMs#7287

Open
manodasanW wants to merge 2 commits intoNuGet:devfrom
manodasanW:manodasanw/targetPlatformVersionCsWinRT
Open

Update TFM version compatibility behavior to correctly handle CsWinRT 3.0 .1 TFMs#7287
manodasanW wants to merge 2 commits intoNuGet:devfrom
manodasanW:manodasanw/targetPlatformVersionCsWinRT

Conversation

@manodasanW
Copy link
Copy Markdown

@manodasanW manodasanW commented Apr 16, 2026

Bug

Fixes: NuGet/Home#14859

Description

Updating the TFM version compatibility checker to correctly handle the new .1 Windows OS version TFMs that were added in .NET 10. In .NET 10, net10.0-windows10.0.17763.1 and similar TFMs for the other Windows OS versions were added to allow multi-targeting between CsWinRT 3.0 and CsWinRT 2.x WinRT projections and not be a breaking change allowing for consumers to adopt at their own pace. But this means the version compatibility checker needs to treat the .1 revision as not compatible with .0 revision and vice-versa.

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.

@manodasanW manodasanW requested a review from a team as a code owner April 16, 2026 02:41
@dotnet-policy-service dotnet-policy-service Bot added the Community PRs created by someone not in the NuGet team label Apr 16, 2026
Comment thread src/NuGet.Core/NuGet.Frameworks/CompatibilityProvider.cs Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Community PRs created by someone not in the NuGet team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NuGet nearest-TFM behavior for Windows TFM should take into account revision for CsWinRT 3.0 multi-targeting

2 participants