[docs] Document DotnetProjectResource namespace move to Aspire.Hosting.Dotnet - #1473
[docs] Document DotnetProjectResource namespace move to Aspire.Hosting.Dotnet#1473aspire-repo-bot[bot] wants to merge 2 commits into
Conversation
….Dotnet Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Frontend HTML artifact readyThe latest frontend build uploaded the This comment updates automatically when a new frontend build artifact is uploaded. |
There was a problem hiding this comment.
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
DotnetProjectResourceshould be imported fromAspire.Hosting.Dotnet. - Adds a short C# snippet demonstrating
using Aspire.Hosting.Dotnet;when usingIResourceBuilder<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
Adam Ratzman (adamint)
left a comment
There was a problem hiding this comment.
I checked the C# and TypeScript snippets against the new APIs and namespace move. This looks good.
Documents changes from microsoft/aspire#18981
@sebastienrosTargeting
release/13.5based on the source PR milestone13.5.Why
PR #18981 moved the experimental
DotnetProjectResourcetype from the sharedAspire.Hosting.ApplicationModelnamespace to the integration-specificAspire.Hosting.Dotnetnamespace and applied theASPIREDOTNETPROJECT001experimental diagnostic, aligning it with the Go, Python, and JavaScript hosting integrations. The PR body's "User-facing usage" section shows C# consumers now needusing 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 theusing Aspire.Hosting.Dotnet;import needed to referenceDotnetProjectResourcedirectly in C# AppHosts.Files modified
src/frontend/src/content/docs/integrations/frameworks/dotnet/dotnet-host.mdxNo new pages were created; this is a targeted addition to the existing Dotnet hosting integration reference page.