Skip to content

Add date-aware framework lifecycle metadata for .NET 11 GA - #555

Merged
jongalloway merged 2 commits into
mainfrom
jongalloway-framework-lifecycle-metadata
Nov 5, 2026
Merged

jongalloway merged 2 commits into
mainfrom
jongalloway-framework-lifecycle-metadata

Conversation

@jongalloway

Copy link
Copy Markdown
Owner

Framework metadata currently labels .NET 11 as Preview indefinitely and cannot distinguish historical LTS classification from ongoing support. This change keeps recommendations and discovery accurate across the upcoming GA and end-of-support transitions.

Approach

  • Centralize explicit release types, GA dates, and support end dates in FrameworkHelper, evaluated against one UTC date per response.
  • Switch the latest recommendation to net11.0 at GA while retaining net10.0 as latest LTS and leaving project/template defaults unchanged.
  • Add lifecycle fields to framework resources and SDK structured output, align human-readable descriptions and capabilities, and warn about EOL project frameworks.
  • Retain known EOL frameworks for discovery and completions. Keep .NET 11 SDK-gated before GA, then include it normally without duplicate entries.

Lifecycle decisions

Support end dates are inclusive: .NET 8/9 become EOL on November 11, 2026. .NET 11 uses Microsoft's published November 14, 2028 support end date, rather than November 9 in the issue. Unknown or OS-dependent lifecycle data remains null/omitted. Recommendations fail explicitly if no recorded supported release remains, instead of recommending an expired release.

No SDK, runtime target, package, or tool-manifest versions are changed.

Validation

  • Both server targets build with zero warnings or errors.
  • Final targeted regression run: 570 passing tests across net10.0 and net11.0, including deterministic GA/EOL boundaries, production and source-generated serialization, output schemas, capabilities, completions, and project validation.
  • Broader lifecycle/protocol regression run: 798 passing tests; two existing opt-in interactive tests skipped.

Fixes: #544

Share release types and support dates across framework helpers, resources, SDK outputs, completions, and validation. Preserve .NET 10 defaults and cover GA/EOL boundaries deterministically.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 5, 2026 05:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Platform-qualified .NET 8 TFMs bypass lifecycle lookup, causing validation to miss the EOL warning after November 10, 2026, and report an unknown lifecycle.

1 open issue
What changed in this PR

Adds date-aware framework lifecycle metadata so the MCP server’s discovery and recommendations track .NET 11 GA and support deadlines, while preserving .NET 10 project defaults.

Changes:

  • Centralizes release classifications, GA dates, and inclusive support end dates.
  • Exposes lifecycle metadata through resources and SDK tools, updates recommendations and completions, and adds EOL project warnings.
  • Adds boundary and serialization tests, with documentation for the lifecycle contract.
File Description
DotNetMcp/​Tools/​Sdk/​DotNetCliTools.Sdk.Consolidated.cs Adds lifecycle details to framework tool output.
DotNetMcp/​Tools/​Cli/​DotNetCliTools.Misc.cs Makes capability recommendations date-aware.
DotNetMcp/​Server/​CompletionProvider.cs Includes .NET 11 completions from GA.
DotNetMcp/​SdkIntegration/​ProjectAnalysisHelper.cs Warns about EOL project frameworks.
DotNetMcp/​SdkIntegration/​FrameworkHelper.cs Centralizes lifecycle dates and recommendation logic.
DotNetMcp/​Resources/​ResourceJsonModels.cs Adds resource lifecycle fields.
DotNetMcp/​Resources/​DotNetResources.cs Shares lifecycle-aware resource discovery.
DotNetMcp/​Helpers/​StructuredContentTypes.cs Adds structured framework lifecycle metadata.
DotNetMcp.Tests/​Tools/​ConsolidatedSdkToolTests.cs Tests lifecycle text and serialized output.
DotNetMcp.Tests/​Server/​ServerCapabilitiesTests.cs Tests recommendations across GA.
DotNetMcp.Tests/​Server/​OutputSchemaTests.cs Checks lifecycle payloads against output schemas.
DotNetMcp.Tests/​Server/​CompletionProviderTests.cs Tests GA inclusion and EOL retention.
DotNetMcp.Tests/​SdkIntegration/​ProjectAnalysisHelperTests.cs Tests EOL warning boundaries.
DotNetMcp.Tests/​SdkIntegration/​FrameworkHelperTests.cs Tests lifecycle dates, descriptions, and recommendations.
DotNetMcp.Tests/​Resources/​DotNetResourcesParsingTests.cs Makes preview SDK-gating tests deterministic.
DotNetMcp.Tests/​Resources/​DotNetResourcesLookupTests.cs Tests resource discovery and lifecycle serialization.
doc/​sdk-integration.md Documents lifecycle behavior and unchanged defaults.
doc/​machine-readable-contract.md Defines lifecycle fields and transition semantics.

Review effort: Balanced

Use NuGet framework parsing to look up the underlying recorded release while preserving original TFMs in output and diagnostics. Cover the inclusive .NET 8 EOL boundary for Windows-qualified frameworks.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@jongalloway
jongalloway merged commit 556045b into main Nov 5, 2026
21 checks passed
@jongalloway
jongalloway deleted the jongalloway-framework-lifecycle-metadata branch November 5, 2026 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update FrameworkHelper lifecycle metadata for .NET 11 GA

2 participants