Skip to content

Document that TargetFramework values are aliases that drive moniker properties#53159

Open
Copilot wants to merge 6 commits intomainfrom
copilot/document-targetframework-aliases
Open

Document that TargetFramework values are aliases that drive moniker properties#53159
Copilot wants to merge 6 commits intomainfrom
copilot/document-targetframework-aliases

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 15, 2026

The Target frameworks in SDK-style projects page explains TFMs but doesn't explain the underlying mechanism: TargetFramework is always an alias translated into canonical TargetFrameworkMoniker and TargetPlatformMoniker properties.

Adds a new subsection under "How to specify a target framework" in docs/standard/frameworks.md:

  • TargetFramework values are aliases — Explains the SDK translation from TargetFrameworkTargetFrameworkMoniker, TargetFrameworkIdentifier, TargetFrameworkVersion, and TargetPlatform* properties. Includes the custom alias example (banana) per issue discussion, demonstrating that the TargetFramework value can be any alphanumeric string as long as the moniker properties are set correctly.

Heading name aligns with the corresponding NuGet docs section to support cross-linking between the two doc sets. Complements the already-merged PR #52883 which added equivalent notes to msbuild-props.md.


Internal previews

📄 File 🔗 Preview link
docs/standard/frameworks.md Target frameworks in SDK-style projects

…frameworks.md

Agent-Logs-Url: https://github.com/dotnet/docs/sessions/7aa809ad-c4fa-4344-a7a2-ec9a92e58ce7

Co-authored-by: nkolev92 <2878341+nkolev92@users.noreply.github.com>
Copilot AI changed the title [WIP] Document TargetFramework values as aliases for TargetFrameworkMoniker and TargetPlatformMoniker Document that TargetFramework values are aliases that drive moniker properties Apr 15, 2026
Copilot AI requested a review from nkolev92 April 15, 2026 18:42
Comment thread docs/standard/frameworks.md Outdated
Comment thread docs/standard/frameworks.md Outdated
Comment thread docs/standard/frameworks.md Outdated
Copilot AI requested a review from nkolev92 April 15, 2026 18:49
@nkolev92 nkolev92 marked this pull request as ready for review April 15, 2026 18:53
@nkolev92 nkolev92 requested review from a team and gewarren as code owners April 15, 2026 18:53
Copilot AI review requested due to automatic review settings April 15, 2026 18:53
Copy link
Copy Markdown
Contributor

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

Adds documentation to clarify that TargetFramework values (TFMs) are aliases that the .NET SDK translates into canonical moniker properties used by the build and restore pipeline.

Changes:

  • Updates ms.date to 04/15/2026.
  • Adds a new subsection explaining TargetFramework alias translation into TargetFrameworkMoniker, TargetFrameworkIdentifier, TargetFrameworkVersion, and TargetPlatform* properties.
  • Adds a custom alias (banana) example that explicitly sets moniker properties.

Comment thread docs/standard/frameworks.md Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

5 participants