You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove the legacy Aspire workload deprecation check from the .NET SDK #57356
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.
🟨 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 · ◷
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.
Activity
github-actions commentedon Nov 25, 2026
🎯 Agentic Issue Triage
Triage Assessment:
untriaged)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.
joperezr commentedon Nov 25, 2026
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.