deprecate-integration
Skill6.3k starsChanged 6 months agoMITView on GitHub
Sunsets (soft-deprecates) a shipped Aspire hosting integration: marks its public API [Obsolete], adds a README warning banner, hides the package from `aspire add`, removes integration-specific automation, suppresses the resulting warnings in first-party consumers, and ships one final obsolete release. Use when asked to deprecate, sunset, retire, or wind down an Aspire integration/package while keeping a final published version.
Trending
Quiet since September.about the whole repository
Who's talking about microsoft/aspire
- Azure/azure-functions-core-tools“azure-functions-core-tools 4.13.2 Linux x64 package references a missing CDN blob”GitHub · Aug 9, 2026 · 18 reactions
- apple/container“[Request]: `cp` command tar stream support”GitHub · Jul 6, 2026 · 6 reactions
- CommunityToolkit/Aspire“Add Dekaf Kafka client integration and Schema Registry hosting support”GitHub · Sep 21, 2026 · 2 reactions
- thomhurst/TUnit“chore(deps): update aspire to 13.5.2”GitHub · Aug 21, 2026 · 2 reactions
- kubernetes-client/csharp“UnobservedTaskException from orphaned ReadLineAsync task in Watcher<T>.CreateWatchEventEnumerator during …”GitHub · Jun 22, 2026 · 2 reactions
The biggest 5 of 20 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 20
Talked about on GitHub and Bluesky (20 times).
On GitHub · 18
- Aug 9, 2026azure-functions-core-tools 4.13.2 Linux x64 package references a missing CDN blob — Azure/azure-functions-core-tools18 reactions · 11 comments
- Jul 6, 2026[Request]: `cp` command tar stream support — apple/container6 reactions · 2 comments
- Sep 21, 2026Add Dekaf Kafka client integration and Schema Registry hosting support — CommunityToolkit/Aspire2 reactions
- Aug 21, 2026chore(deps): update aspire to 13.5.2 — thomhurst/TUnit2 reactions · 3 comments
- Jun 22, 2026UnobservedTaskException from orphaned ReadLineAsync task in Watcher<T>.CreateWatchEventEnumerator during cancellation — kubernetes-client/csharp2 reactions · 2 comments
13 more on GitHub
- Jun 17, 2026chore(deps): update aspire monorepo to 13.4.5 — chrismeller/archiveteam-exporter2 reactions
- Jun 11, 2026chore(deps): update aspire monorepo to 13.4.3 — chrismeller/archiveteam-exporter2 reactions · 1 comment
- May 19, 2026chore(deps): update aspire monorepo to 13.3.4 — chrismeller/archiveteam-exporter2 reactions
- Sep 26, 2026Update Aspire version to 13.6.0 Staging Channel — CommunityToolkit/Aspire1 reaction · 5 comments
- Sep 8, 2026This PR merges the `release/13.5` branch back to `main` after the v13.5.0 release. — cli/cli1 reaction · 1 comment
- Aug 24, 2026Azure.Provisioning.AppContainers uses incorrect default naming requirements for managed environments — Azure/azure-sdk-for-net1 reaction
- Aug 6, 2026safe-outputs checkout auto-detection downgrades contents: write to read — github/gh-aw1 reaction
- Jun 15, 2026deps: Update aspire monorepo to 13.4.6 — ANcpLua/DotNetTests1 reaction
- May 26, 2026safe_outputs add_comment hard-fails on locked source PR (pr-docs-check recurring failures) — github/gh-aw1 reaction
- May 24, 2026"Install the Aspire Templates" section should be clear it's referring specifically to `dotnet` — microsoft/aspire.dev1 reaction · 1 comment
- May 13, 2026Azure.Provisioning.ContainerService: ManagedClusterIngressProfile is internal, blocking preview-API gatewayAPI and applicationLoadBalancer additions — Azure/azure-sdk-for-net1 reaction · 3 comments
- May 12, 2026Application Insights is filled with EventProcessor.Process logs that cannot be filtered out when OpenTelemetry enabled — Azure/azure-functions-host1 reaction
- Apr 16, 2026End2End template with Foundry Hosted Agents — leslierichardson95/aspire-agent-template1 reaction · 3 comments
On Bluesky · 2
- Mar 23, 2026.NET Aspireはコードファーストで拡張性のある分散アプリ開発を統一的に支援するツール群らしい コードでサービスやリソースを定義してローカルデバッグからデプロイまでこなせるのが便利そうかな yug1224 starred microsoft/aspire… — @yug1224.com1 likes and repost
- Mar 22, 2026📦 microsoft / aspire ⭐ 5,662 (+72) 🗒 TypeScript Aspire is the tool for code-first, extensible, observable dev and deploy. — @github-trending-js.bsky.social1 likes and repost
In this repository24 other files it gives its agents.
- AGENTS.mdAGENTS.md
- api-reviewSkill
- azdo-internalSkill
- backport-prSkill
- bump-aspire-versionSkill
- ci-test-failuresSkill
- cli-channel-debuggingSkill
- cli-e2e-testingSkill
- code-reviewSkill
- connection-propertiesSkill
- create-prSkill
- dashboard-testingSkill
- dependency-updateSkill
- deployment-e2e-testingSkill
- fix-flaky-testSkill
- hex1bSkill
- hosting-integration-authoringSkill
- issue-investigationSkill
- pr-testingSkill
- reviewing-aspire-architectureSkill
- startup-perfSkill
- test-managementSkill
- update-container-imagesSkill
- vscode-extensionSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
20 rules. About 0 are common, 7 are distinctive, and 13 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
every public and exported API surfaces a clear [Obsolete] warning that points at a tracking issue,
- Distinctive: line 14
Do not delete the project, its tests, its playground, or its polyglot fixtures during a soft sunset.
- Very specific: line 21
Phase 2 — full removal (a later release): Delete the project, tests, playground, polyglot fixtures, and solution entry.
- Distinctive: line 35
If the tracking issue is unknown, ask for it before editing — the message text and comments depend on it.
- Very specific: line 39
Create src/Aspire.Hosting.<Name>/<Name>Deprecation.cs with a single internal constant reused by every [Obsolete] attribute.
- Very specific: line 59
Add [Obsolete(<Name>Deprecation.Message)] to each public type and each extension method the integration exposes:
- Very specific: line 75
Do not add error: true to [Obsolete].
- Distinctive: line 102
Leave the rest of the README intact so existing users can still read the usage docs.
- Distinctive: line 106
Delete anything that exists only to maintain this integration, because it should stop running once the integration is frozen:
- Distinctive: line 112
Search for other references to the removed workflow/tooling (CI trigger maps, docs) and clean up dangling mentions.
- Very specific: line 116
Add the package id to the CLI deny-list in src/Aspire.Cli/NuGet/NuGetPackageCache.cs:
- Very specific: line 149
Prefer per-project NoWarn over editing shared props.
- Very specific: line 158
Follow the existing assertion style in those files even if it uses Assert.DoesNotContain.
- Very specific: line 162
Do not set <IsPackable>false</IsPackable> or <SuppressFinalPackageVersion> on the integration .csproj.
- Very specific: line 166
No changes are needed for tests/PolyglotAppHosts/Aspire.Hosting.<Name>/...
- Distinctive: line 175
Run a restore + build, then the targeted test projects:
- Distinctive: line 209
Only when explicitly asked to fully remove an already-sunset integration:
- Very specific: line 211
Delete src/Aspire.Hosting.<Name>/, tests/Aspire.Hosting.<Name>.Tests/, the playground, and tests/PolyglotAppHosts/Aspire.Hosting.<Name>/.
- Very specific: line 212
Remove the project from Aspire.slnx and any solution/build references.
- Very specific: line 214
Remove the now-unused per-consumer NoWarn>CS0618 suppressions that referenced the deleted integration.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
You are a specialized integration-deprecation agent for the microsoft/aspire repository. Your job is to perform a complete, consistent soft sunset of a shipped hosting integration (for example Aspire.Hosting.GitHub.Models) so that:
- every public and exported API surfaces a clear
[Obsolete]warning that points at a tracking issue, - the package stops showing up in
aspire add, - integration-specific automation that only exists to maintain it is removed,
- the solution still builds clean and the package still publishes one final obsolete version,
- and a later release can delete the integration entirely with minimal extra work.
Do not delete the project, its tests, its playground, or its polyglot fixtures during a soft sunset. Deletion is a separate, later phase (see "Phase 2: full removal" at the end).
Background: the two-phase lifecycle
Aspire retires an integration in two releases:
- Phase 1 — soft sunset (this skill). Mark the API
[Obsolete], warn in the README, hide it fromaspire add, drop its bespoke tooling/workflows, and keep it packable so the next release ships a final, clearly-deprecated version. Existing apps keep working. - Phase 2 — full removal (a later release). Delete the project, tests, playground, polyglot fixtures, and solution entry. Keep the package id in the CLI
DeprecatedPackageslist so previously-published versions stay hidden fromaspire add.
Precedent in the repo:
Aspire.Hosting.DaprandAspire.Hosting.NodeJsare already in Phase 2 — theirsrc/projects are gone, but their ids remain inDeprecatedPackages.s_all.
Inputs to collect
Before starting, determine:
- Integration project — e.g.
src/Aspire.Hosting.<Name>/and its package idAspire.Hosting.<Name>. - Tracking issue URL — the GitHub issue explaining why the integration is being sunset. Every obsolete message, README banner, and explanatory comment links to it.
- A short reason — one sentence a user will read (e.g. "GitHub Models is no longer available to new customers").
If the tracking issue is unknown, ask for it before editing — the message text and comments depend on it.
Step 1 — Add a shared deprecation message constant
Create src/Aspire.Hosting.<Name>/<Name>Deprecation.cs with a single internal constant reused by every [Obsolete] attribute. Centralizing the text keeps all the warnings identical and makes the follow-up edit trivial.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace Aspire.Hosting.<Name>;
internal static class <Name>Deprecation
{
// <Reason>, so the integration is being sunset.
// See <tracking-issue-url> for details.
public const string Message = "<Reason>, so the Aspire <Name> integration is deprecated and will be removed in a future release. See <tracking-issue-url> for details.";
}Match the integration's existing root namespace. If a type lives in a different namespace than the constant, add a using for the deprecation namespace to that file.
Step 2 — Mark the entire public + exported API [Obsolete]
Add [Obsolete(<Name>Deprecation.Message)] to each public type and each extension method the integration exposes:
- the resource class(es) (
public class <Name>Resource : Resource, ...), - any public descriptor/option/enum-wrapper types the integration exposes (the type, not each of its entries — see scoping below),
- all extension methods in
*Extensions.cs, includingpublicandinternalones.
Scope it correctly — mark each public type and extension method once, and do not over-apply:
- Marking a type
[Obsolete]already covers all of its members. Any access through an obsolete type (including its nested types, fields, constants, andstatic readonlydescriptor instances) raises CS0618 for consumers. So when you mark the enclosing type, do not also decorate its nested types, members, or per-item constants — that is redundant and produces a large, noisy diff for no behavioral gain. - Do not edit generated files (
*.Generated.cs, or any file produced by tooling) to add[Obsolete]. Mark the hand-authored partial that declares the public type instead; the obsolete attribute on the enclosing type carries over to the generated partial's members automatically. - Never overwrite a pre-existing
[Obsolete(...)]attribute that carries a more specific message. Some members may already be obsolete for a different, narrower reason (for example, individual catalog entries marked[Obsolete("This item has been removed from the service.")]). Leave those messages intact — only add[Obsolete(<Name>Deprecation.Message)]to members that are not already obsolete.
Other important details:
- Keep
[AspireExport]/[AspireExportIgnore]attributes in place.[Obsolete]does not remove a member from polyglot code generation. The ATS scanner reads[Obsolete](AtsCapabilityScannersetsIsObsolete) and the generators still emit the member, just annotated@deprecated(e.g.AtsTypeScriptCodeGeneratoremits a@deprecatedJSDoc tag). Removing the export attributes would change the generated SDK surface and break polyglot apphosts — do not do it. - Place
[Obsolete(...)]above the existing attributes on each member, then the other attributes, then the signature. - Do not add
error: trueto[Obsolete]. It must stay a warning so the final release still compiles for consumers and so the package builds.
Example:
[Obsolete(<Name>Deprecation.Message)]
[AspireExport]
public static IResourceBuilder<<Name>Resource> WithApiKey(this IResourceBuilder<<Name>Resource> builder, ...)You do not normally need <NoWarn>CS0618</NoWarn> in the integration's own product .csproj: Roslyn does not raise CS0618 when an obsolete member references another obsolete member within the same obsolete context. Rely on the build (Step 6) to confirm rather than pre-emptively suppressing.
Step 3 — Add a README warning banner
At the very top of src/Aspire.Hosting.<Name>/README.md (right under the # <Title> heading), add a GitHub alert banner so the deprecation is unmissable on NuGet and GitHub:
> [!WARNING]
> **This integration is deprecated and no longer supported.**
> <Reason>, so the
> `Aspire.Hosting.<Name>` integration has been sunset. It will not receive
> further updates and will be removed in a future release. Existing applications
> continue to function, but new use is discouraged.
> See [microsoft/aspire#<issue-number>](<tracking-issue-url>)
> for details.Leave the rest of the README intact so existing users can still read the usage docs.
Step 4 — Remove integration-specific automation and tooling
Delete anything that exists only to maintain this integration, because it should stop running once the integration is frozen:
- Scheduled GitHub Actions workflows that refresh data for it (e.g.
.github/workflows/update-<name>.yml). - Bespoke code generators / data-refresh tools under
src/Aspire.Hosting.<Name>/tools/(e.g.GenModel.cs,tools/Directory.Build.props,tools/Directory.Build.targets). - Any
<Compile Remove="tools\**\*.cs" />(or similar) lines in the integration.csprojthat only existed to exclude that tooling — remove them when you delete the tooling so the project file stays clean.
Search for other references to the removed workflow/tooling (CI trigger maps, docs) and clean up dangling mentions. Do not remove shared infrastructure used by other integrations.
Step 5 — Hide the package from aspire add
Add the package id to the CLI deny-list in src/Aspire.Cli/NuGet/NuGetPackageCache.cs:
internal static class DeprecatedPackages
{
private static readonly FrozenSet<string> s_all = new[]
{
"Aspire.Hosting.Dapr",
"Aspire.Hosting.<Name>", // keep the list alphabetically sorted
"Aspire.Hosting.NodeJs"
}.ToFrozenSet(StringComparer.OrdinalIgnoreCase);
...
}This filters the package out of aspire add search/listing and aspire update suggestions by default. It does not affect aspire restore, which resolves already-declared packages by exact id directly through the bundled NuGet service — that is why existing apps and polyglot fixtures keep restoring fine.
Users who still need it can opt back in with the feature flag (aspire config set features.showDeprecatedPackages true), so this is a soft hide, not a hard block.
Step 6 — Suppress CS0618 in first-party consumers (build to find them)
Marking the API [Obsolete] makes every first-party project that uses it emit CS0618, which is an error under TreatWarningsAsErrors. Build the affected projects and fix each warning site by adding a scoped NoWarn with an explanatory comment that links the issue. Typical consumers:
- the integration's own test project (
tests/Aspire.Hosting.<Name>.Tests/...csproj), - any playground apphosts that demonstrate the integration (
playground/<Name>EndToEnd/.../*.AppHost.csproj).
<PropertyGroup>
<!-- This project intentionally exercises the deprecated <Name> integration (<tracking-issue-url>). -->
<NoWarn>$(NoWarn);CS0618</NoWarn>
</PropertyGroup>Prefer per-project NoWarn over editing shared props. Do not suppress CS0618 globally. Let the build tell you exactly which projects need it rather than guessing — add the suppression only where a real CS0618 appears.
Step 7 — Update the CLI deprecated-filtering tests
The CLI tests that assert the deny-list behavior must include the newly deprecated id so they keep covering it. Update both:
tests/Aspire.Cli.Tests/NuGet/NuGetPackageCacheTests.cs— add the package to the fake search results in bothDeprecatedPackagesAreFilteredByDefault(asserting it is filtered out) andDeprecatedPackagesAreIncludedWhenShowDeprecatedPackagesEnabled(asserting it returns when the flag is on).tests/Aspire.Cli.Tests/Packaging/PackageChannelTests.cs— add a dropped.nupkgfor the package to every test that exercisesDeprecatedPackages(there are typically several: the pinned-local-source test plus the local-folder-source filter/include pair). Search the file for the existing deprecated ids (for exampleAspire.Hosting.Dapr) and mirror each occurrence so coverage stays complete.
Follow the existing assertion style in those files even if it uses Assert.DoesNotContain; match the surrounding test for consistency rather than introducing a different pattern.
Step 8 — Keep the package publishable (ship one final obsolete release)
Do not set <IsPackable>false</IsPackable> or <SuppressFinalPackageVersion> on the integration .csproj. The whole point of Phase 1 is that the next release publishes a final, clearly-deprecated version that existing users restore. Confirm the project is still packable and that nothing you removed (Step 4) accidentally dropped packaging metadata.
Step 9 — Leave polyglot fixtures and ATS baselines alone
No changes are needed for tests/PolyglotAppHosts/Aspire.Hosting.<Name>/... during a soft sunset:
aspire restoreresolves the declared package by exact id (bypasses theDeprecatedPackagesfilter), so the per-language SDK still regenerates.- Code generation still exports the obsolete members (now annotated
@deprecated), so the committedapphost.mts/apphost.py/apphost.go/AppHost.javacallers still type-check and the Polyglot SDK Validation jobs stay green.
Per repo policy, do not add unit tests that assert the shape of generated code. If an ATS export surface genuinely changes, update the tests/PolyglotAppHosts apps for all languages instead — but a pure [Obsolete] addition does not change the exported surface, so usually nothing here changes. (Integrations without a committed *.ats.txt baseline have no snapshot to update.)
Step 10 — Build and verify
Run a restore + build, then the targeted test projects:
./build.shdotnet test --project tests/Aspire.Hosting.<Name>.Tests/Aspire.Hosting.<Name>.Tests.csproj --no-launch-profile -- --filter-not-trait "quarantined=true" --filter-not-trait "outerloop=true"
dotnet test --project tests/Aspire.Cli.Tests/Aspire.Cli.Tests.csproj --no-launch-profile -- --filter-not-trait "quarantined=true" --filter-not-trait "outerloop=true"Verify:
- the solution builds clean (no leftover CS0618 errors anywhere),
- the integration tests and the CLI deprecated-filtering tests pass,
- a quick scan shows no dangling references to the removed workflow/tooling.
Optionally smoke-test the user-facing behavior with the CLI: aspire add Aspire.Hosting.<Name> should report no match by default, and building an apphost that calls the API should emit CS0618 with your message.
Files-to-touch checklist
| Area | File(s) | Action |
| Message constant | src/Aspire.Hosting.<Name>/<Name>Deprecation.cs | Add internal Message const linking the issue |
| API surface | src/Aspire.Hosting.<Name>/*.cs (resource, descriptors, *Extensions.cs) | [Obsolete(...Message)] on every public/exported member; keep [AspireExport] |
| README | src/Aspire.Hosting.<Name>/README.md | Add [!WARNING] banner at top |
| Bespoke tooling | src/Aspire.Hosting.<Name>/tools/**, .github/workflows/update-<name>.yml, related .csproj <Compile Remove> | Delete integration-only automation and its csproj plumbing |
| CLI hide | src/Aspire.Cli/NuGet/NuGetPackageCache.cs | Add id to DeprecatedPackages.s_all (alphabetical) |
| Consumer warnings | integration test .csproj, playground apphost .csproj | Add scoped <NoWarn>$(NoWarn);CS0618</NoWarn> with comment |
| CLI tests | tests/Aspire.Cli.Tests/NuGet/NuGetPackageCacheTests.cs, tests/Aspire.Cli.Tests/Packaging/PackageChannelTests.cs | Add the new id to the deprecated-filtering cases |
| Packaging | integration .csproj | Confirm still packable — do not disable packing |
Phase 2: full removal (a later release — not this skill's default)
Only when explicitly asked to fully remove an already-sunset integration:
- Delete
src/Aspire.Hosting.<Name>/,tests/Aspire.Hosting.<Name>.Tests/, the playground, andtests/PolyglotAppHosts/Aspire.Hosting.<Name>/. - Remove the project from
Aspire.slnxand any solution/build references. - Keep the id in
DeprecatedPackages.s_allso previously-published versions remain hidden fromaspire add(this is why Dapr/NodeJs ids persist there after their projects were deleted). - Remove the now-unused per-consumer
NoWarn>CS0618suppressions that referenced the deleted integration. - Build and run the CLI tests again.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

