Skip to content

Fix C# pivot in add-aspire-existing-app docs to show project-based AppHost - #110

Merged
David Pine (IEvangelist) merged 6 commits into
mainfrom
copilot/fix-aspires-init-documentation
Dec 5, 2025
Merged

David Pine (IEvangelist) merged 6 commits into
mainfrom
copilot/fix-aspires-init-documentation

Conversation

Copilot AI commented Dec 2, 2025 •

Copy link
Copy Markdown
Contributor
  • Fix the C# pivot in add-aspire-existing-app.mdx to reflect project-based AppHost (not file-based)
  • Update the filetree to show the correct project structure with AppHost.csproj
  • Update the description text to correctly describe the project-based AppHost behavior
  • Update code samples to show AppHost.cs instead of Program.cs
  • Address reviewer feedback - change Program.cs to AppHost.cs throughout the C# pivot sections
  • Add "After running aspire init, your project will have a file-based AppHost:" sentence to JavaScript pivot for consistency with Python pivot
  • Consolidate Python and JavaScript pivots with identical content using comma-separated IDs

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Fixes #100 /cc David Gardiner (@flcdrg)

Copilot AI changed the title [WIP] Fix misleading docs for aspire init in C# Fix C# pivot in add-aspire-existing-app docs to show project-based AppHost Dec 2, 2025

@IEvangelist David Pine (IEvangelist) 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.

Hey Copilot, please address all feedback

Copilot AI commented Dec 3, 2025

Copy link
Copy Markdown
Contributor Author

Hey Copilot, please address all feedback

Applied all suggestions to change Program.cs to AppHost.cs in the C# pivot sections, plus updated 3 additional related references for consistency (commit 88c3d87).

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 corrects misleading documentation in the "Add Aspire to an existing app" guide. The C# pivot incorrectly suggested that aspire init creates a file-based AppHost (apphost.cs), when it actually creates a project-based AppHost with an AppHost project containing AppHost.cs.

Key Changes

  • Updated C# pivot descriptions to accurately reflect project-based AppHost creation
  • Corrected file tree structure to show the AppHost project directory with .csproj and AppHost.cs files
  • Updated all C# code sample titles from apphost.cs to AppHost.cs

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Misleading docs and examples in get-started/add-aspire-existing-app

4 participants