Skip to content

[docs] Document DotnetProjectResource namespace move to Aspire.Hosting.Dotnet - #1473

Open
aspire-repo-bot[bot] wants to merge 2 commits into
release/13.5from
docs/pr-18981-31552361117-1-5d326dff08a9e5fc
Open

[docs] Document DotnetProjectResource namespace move to Aspire.Hosting.Dotnet#1473
aspire-repo-bot[bot] wants to merge 2 commits into
release/13.5from
docs/pr-18981-31552361117-1-5d326dff08a9e5fc

Conversation

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Documents changes from microsoft/aspire#18981

@sebastienros

Targeting release/13.5 based on the source PR milestone 13.5.

Why

PR #18981 moved the experimental DotnetProjectResource type from the shared Aspire.Hosting.ApplicationModel namespace to the integration-specific Aspire.Hosting.Dotnet namespace and applied the ASPIREDOTNETPROJECT001 experimental diagnostic, aligning it with the Go, Python, and JavaScript hosting integrations. The PR body's "User-facing usage" section shows C# consumers now need using Aspire.Hosting.Dotnet; to reference the resource type directly (e.g. IResourceBuilder<DotnetProjectResource>).

What changed

  • src/frontend/src/content/docs/integrations/frameworks/dotnet/dotnet-host.mdx — added a short code sample, right after the existing experimental caution note, showing the using Aspire.Hosting.Dotnet; import needed to reference DotnetProjectResource directly in C# AppHosts.

Files modified

  • src/frontend/src/content/docs/integrations/frameworks/dotnet/dotnet-host.mdx

No new pages were created; this is a targeted addition to the existing Dotnet hosting integration reference page.

Generated by PR Documentation Check · auto · 35.3 AIC · ⌖ 8.09 AIC · ⊞ 19.6K ·

….Dotnet

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 Aug 12, 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 #1473. Use the VS Code button below to open this PR with GitHub Artifacts Explorer and browse the built HTML locally.

VS Code: Open PR #1473 artifacts

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

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.

Pull request overview

This PR updates the .NET / C# Dotnet hosting integration documentation to reflect that the experimental DotnetProjectResource type moved to the Aspire.Hosting.Dotnet namespace, so C# AppHosts must import that namespace when referencing the resource type directly.

Changes:

  • Adds guidance that DotnetProjectResource should be imported from Aspire.Hosting.Dotnet.
  • Adds a short C# snippet demonstrating using Aspire.Hosting.Dotnet; when using IResourceBuilder<DotnetProjectResource>.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 32c349b4-907d-42e9-aad8-2f0edc267779

@adamint Adam Ratzman (adamint) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I checked the C# and TypeScript snippets against the new APIs and namespace move. This looks good.

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.

3 participants