Skip to content

[docs] Document AddCSharpApp obsoletion in favor of AddDotnetProject - #1853

Draft
aspire-repo-bot[bot] wants to merge 1 commit into
release/17.0from
docs/pr-20825-37864887184-1-59e4f9efaadbee32
Draft

aspire-repo-bot[bot] wants to merge 1 commit into
release/17.0from
docs/pr-20825-37864887184-1-59e4f9efaadbee32

Conversation

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Documents changes from microsoft/aspire#20825

@mitchdenny

Target branch

Targeting release/17.0 based on the source PR milestone 17.0 (exact_match).

Why this PR is needed

PR #20825 replaces the experimental ASPIRECSHARPAPPS001 diagnostic on AddCSharpApp (and the polyglot addCSharpApp export) with a warning-level [Obsolete] attribute directing consumers to AddDotnetProject from Aspire.Hosting.Dotnet. This is a labeled breaking-change: existing C# AddCSharpApp calls now produce CS0618 instead of the experimental diagnostic, and the docs site previously described AddCSharpApp as purely experimental with no obsoletion/migration guidance.

Triggered signals from the automated analysis: obsolete_attribute_added (new [Obsolete(...)] on the public/internal AddCSharpApp overloads in ProjectResourceBuilderExtensions.cs), integration_readme_changed (Aspire.Hosting.Dotnet/README.md gained a "Migrating from AddCSharpApp" section), pr_label_breaking_change, and PR-body signals confirming a deprecation marker and a "User-facing usage" section.

Summary of documentation changes

  • whats-new/aspire-17.mdx — added a #### AddCSharpApp is obsolete entry under Breaking changes, explaining the [Obsolete]/CS0618 change and linking to the source PR and migration guidance.
  • integrations/dotnet/csharp-file-based-apps.mdx — changed the top Aside banner from "Experimental" to "Obsolete", updated the limitations list, and added a new ## Migrating to AddDotnetProject section with install/usage snippets for both C# and TypeScript, plus a CS0618 suppression example for consumers who keep using AddCSharpApp.
  • diagnostics/aspirecsharpapps001.mdx — added a note that the diagnostic is obsolete starting in 17.0 and now surfaces as CS0618, with a link to the new migration section.
  • diagnostics/overview.mdx — updated the ASPIRECSHARPAPPS001 table row description to mention the CS0618 replacement.
  • integrations/frameworks/dotnet/dotnet-host.mdx — added a note pointing readers migrating from AddCSharpApp to the new migration section.
  • integrations/dotnet/project-resources.mdx — added a note to the "AddProject vs. AddCSharpApp" comparison section flagging the obsoletion.
  • get-started/add-aspire-existing-app.mdx — updated the AddCSharpApp is experimental caution callout to AddCSharpApp is obsolete, recommending AddDotnetProject for new AppHosts.

All pages were existing — no new pages were created.

Files modified

  • src/frontend/src/content/docs/whats-new/aspire-17.mdx
  • src/frontend/src/content/docs/integrations/dotnet/csharp-file-based-apps.mdx
  • src/frontend/src/content/docs/diagnostics/aspirecsharpapps001.mdx
  • src/frontend/src/content/docs/diagnostics/overview.mdx
  • src/frontend/src/content/docs/integrations/frameworks/dotnet/dotnet-host.mdx
  • src/frontend/src/content/docs/integrations/dotnet/project-resources.mdx
  • src/frontend/src/content/docs/get-started/add-aspire-existing-app.mdx

Validation

Documentation-only change; no code to build or test. Verified internal anchor links (#migrating-to-adddotnetproject, #breaking-changes) resolve to the headings added in this PR, and checked ::: Aside/note fence balance in each edited file.

Generated by PR Documentation Check for #20825 · copilot · auto · 139.4 AIC · ⌖ 17.1 AIC · ⊞ 20.4K · ◷

Documents the breaking change from microsoft/aspire#20825: AddCSharpApp
(and the polyglot addCSharpApp export) is now marked [Obsolete] instead
of [Experimental("ASPIRECSHARPAPPS001")], producing CS0618 instead of
the experimental diagnostic. Adds migration guidance pointing consumers
to AddDotnetProject from the Aspire.Hosting.Dotnet package.

- Added a breaking-change entry to What's new in Aspire 17.0
- Added a Migrating to AddDotnetProject section to the C# file-based
  apps integration page, with updated Aside/limitations text
- Updated the ASPIRECSHARPAPPS001 diagnostic page and the diagnostics
  overview table to note the obsoletion
- Cross-referenced the migration guidance from the .NET host page,
  project-resources comparison, and the existing-app onboarding guide

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@aspire-repo-bot aspire-repo-bot Bot added the docs-from-code Copilot initiated issue from dotnet/aspire repo label Oct 9, 2026
@aspire-repo-bot

Copy link
Copy Markdown
Contributor Author

Frontend HTML artifact ready

The latest frontend build uploaded the frontend-dist artifact for PR #1853. Use the VS Code button below to open this PR with GitHub Artifacts Explorer and browse the built HTML locally.

VS Code: Open PR #1853 artifacts

This comment updates automatically when a new frontend build artifact is uploaded.

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

Labels

docs-from-code Copilot initiated issue from dotnet/aspire repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants