Skip to content

Remove the legacy Aspire workload deprecation check from the .NET SDK #57356

Backlog

Description

@joperezr

Summary

Remove _CheckForAspireWorkloadDeprecation and its import from the .NET SDK. The workload-based Aspire project model dates back more than three years; we should retire this migration check rather than require modern, SDK-free AppHosts to keep supplying an obsolete SDK-version marker.

Current behavior

Microsoft.NET.AspireWorkloadDeprecation.targets runs before PrepareForBuild. If IsAspireHost is true and AspireHostingSDKVersion is empty or below 9.0.0, it raises AspireWorkloadIsDeprecated.

Current Aspire AppHosts use Microsoft.NET.Sdk plus the Aspire.Hosting.AppHost package, without Aspire.AppHost.Sdk. To avoid this error, the package sets AspireHostingSDKVersion to its own package version even though no Aspire SDK is being used.

Related Aspire changes: microsoft/aspire#22454 and the release/17.0 backport microsoft/aspire#22636. The backport makes this workaround available earlier during project evaluation; it does not eliminate the underlying SDK dependency.

Requested change and follow-up

  • Remove the SDK target and its import so package-based AppHosts do not need an Aspire SDK-version property merely to pass this check.
  • Once the removal is available in the .NET SDKs supported by Aspire, return to Aspire.Hosting.AppHost and remove the synthetic AspireHostingSDKVersion defaults from its package .props and .targets. These assignments should be treated as a temporary compatibility workaround, not a long-term contract.
  • Audit and migrate remaining Aspire tooling consumers before removing those defaults. Keep _AspireAppHostPackageVersion where it represents the actual package version, including CLI version pinning.
  • Link this issue from a comment above the property group in Aspire.Hosting.AppHost.in.props so the reason for the workaround and its removal condition are clear.

Removing the check in future SDKs alone is not sufficient to delete the package workaround while Aspire still supports SDK versions that contain the check.

Activity

  1. added
    untriaged
    on Nov 25, 2026
  2. locked and limited conversation to collaborators on Nov 25, 2026
  3. unlocked this conversation on Nov 25, 2026
  4. added
    cookie
    needs team triage
    and removed
    untriaged
    on Nov 25, 2026
  5. github-actions commented on Nov 25, 2026

    @github-actions
    Contributor

    🎯 Agentic Issue Triage

    Triage Assessment:

    • 🏷️ Labels: Area-NetSDK enhancement cookie Issue Monster Loves Cookies! needs team triage Requires a full team discussion (removed untriaged)
    • 💻 Assignment: none | @dotnet/dotnet-cli
    • 🟨 Confidence: medium - The targets file lives in the .NET build tasks, but no CODEOWNERS section matches Area-NetSDK.

    ➡️ Summary: Requests removing the legacy Aspire workload deprecation target and its import from the SDK, so AppHosts need no synthetic version property. Follow up by deleting the targets file and import, then coordinating Aspire package cleanup.

    Generated by 🏷️ Issue Triage for #57356 · copilot · auto (Claude Sonnet 5.5) · ~16 AIC · ⌖ ~2 AIC · ⊞ 15.5K · ◷

  6. joperezr commented on Nov 25, 2026

    @joperezr
    MemberAuthor

    The Aspire-side cleanup is tracked in microsoft/aspire#22669. We'll remove the property default in a future major release, after the minimum supported .NET SDK includes this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-NetSDKcookieenhancementneeds team triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions