Skip to content

XS ◾ ✏️ .NET 10 Migrations - TFM Rule Update#11890

Open
KahaMason wants to merge 8 commits intomainfrom
KAM/TFM-Rule-Update
Open

XS ◾ ✏️ .NET 10 Migrations - TFM Rule Update#11890
KahaMason wants to merge 8 commits intomainfrom
KAM/TFM-Rule-Update

Conversation

@KahaMason
Copy link
Member

  1. What triggered this change? (PBI link, Email Subject, conversation + reason, etc)

Needed to revamp the Target Framework Monikers (TFMs) rule

  1. What was changed?
  • Added additional C# preprocessor directives
  • Added more TFM conditionals for project references, packages and constants
  • Added CI pipeline setup examples for multi-targeting frameworks (Azure & GitHub)

@KahaMason KahaMason changed the title Update rule ✏️ .NET 10 Migrations - TFM Rule Update Feb 4, 2026
@github-actions github-actions bot added the Age: 🥚 - New About 2 hours old label Feb 4, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 4, 2026

PR Metrics

Thanks for keeping your pull request small.

Lines
Product Code -
Test Code -
Subtotal -
Ignored Code 99
Total 99

Metrics computed by PR Metrics. Add it to your Azure DevOps and GitHub PRs!

@github-actions github-actions bot changed the title ✏️ .NET 10 Migrations - TFM Rule Update XS ◾ ✏️ .NET 10 Migrations - TFM Rule Update Feb 4, 2026
@github-actions github-actions bot added Age: 🐣 - Young About 4 hours old Age: 🐥 - Adolescent About 8 hours old Age: 🐤 - Mature About 16 hours old Age: 🐓 - Old About 32 hours old and removed Age: 🥚 - New About 2 hours old Age: 🐣 - Young About 4 hours old Age: 🐥 - Adolescent About 8 hours old Age: 🐤 - Mature About 16 hours old labels Feb 4, 2026
---
seoDescription: Learn how to manage compatibility between different Target Framework Monikers (TFMs) using #if pragma statements and MSBuild conditions for efficient migrations.
type: rule
title: Do you know how to manage compatibility between different Target Framework Monikers (TFMs)?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets rename the rule into
"Do you know how to multi-target your .NET projects?"

Just keep the original URL in redirects

@github-actions github-actions bot added Age: 🍗 - Ancient About 64 hours old 🔥 Merge Debt This PR contains merge debt, see https://www.ssw.com.au/rules/merge-debt/ and removed Age: 🐓 - Old About 32 hours old labels Feb 5, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2026

Howzit @KahaMason,

This PR has been here a while.

Did you know you should avoid merge debt?

  1. Please action (e.g. get a review) and merge or close

Thanks!

@github-actions github-actions bot added Age: 🦖 - Extinct About 128 hours old and removed Age: 🍗 - Ancient About 64 hours old labels Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Age: 🦖 - Extinct About 128 hours old 🔥 Merge Debt This PR contains merge debt, see https://www.ssw.com.au/rules/merge-debt/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants