Skip to content

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

Merged
zivkan merged 5 commits into
NuGet:devfrom
manodasanW:manodasanw/targetPlatformVersionCsWinRT
Apr 30, 2026
Merged

zivkan merged 5 commits into
NuGet:devfrom
manodasanW:manodasanw/targetPlatformVersionCsWinRT

Conversation

@manodasanW

@manodasanW manodasanW commented Apr 16, 2026 •

Copy link
Copy Markdown
Contributor

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
@dotnet-policy-service dotnet-policy-service Bot added the Status:No recent activity PRs that have not had any recent activity and will be closed if the label is not removed label Apr 29, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

This PR has been automatically marked as stale because it has no activity for 7 days. It will be closed if no further activity occurs within another 30 days of this comment. If it is closed, you may reopen it anytime when you're ready again, as long as you don't delete the branch.

@zivkan zivkan removed the Status:No recent activity PRs that have not had any recent activity and will be closed if the label is not removed label Apr 29, 2026
zivkan
zivkan previously approved these changes Apr 30, 2026
@zivkan
zivkan enabled auto-merge (squash) April 30, 2026 21:33
@zivkan
zivkan merged commit 5524a09 into NuGet:dev Apr 30, 2026
17 checks passed
@manodasanW
manodasanW deleted the manodasanw/targetPlatformVersionCsWinRT branch May 1, 2026 00:33
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

3 participants