Automating .NET Aspire Architecture Documentation with GitHub Copilot
dotnet presents an in-depth session on using GitHub Copilot and Copilot Coding Agent to automate and maintain .NET Aspire app architecture documentation through code and DevOps workflows.
Automating .NET Aspire Architecture Documentation with GitHub Copilot
Presenter: dotnet
Session Overview
In this Level 300 hands-on session, you’ll learn how to transform .NET Aspire AppHost definitions into continuously updated, accurate architecture documentation. The session focuses on reducing documentation rot and effort by streamlining the process through automation, using GitHub Copilot tools.
Key Topics Covered
- Generating Diagrams:
- Use GitHub Copilot Chat to request ASCII diagrams representing the services and resources declared within .NET Aspire projects.
- Automatically convert these diagrams to Mermaid format for richer presentation.
- Preview in VS Code:
- Utilize the
mcp-mermaidextension in Visual Studio Code for immediate visualization of Mermaid diagrams, bridging code and documentation for developers.
- Utilize the
- Automating Docs with Agents:
- Employ the Copilot Coding Agent to automate pull request creation, ensuring documentation files are updated whenever your app architecture evolves.
- Enriching with Dashboards:
- Integrate Aspire Dashboard screenshots directly into markdown documentation using Playwright MCP for added clarity and context.
- CI/CD Integration:
- Incorporate the entire workflow into your DevOps pipeline, reducing manual effort and guaranteeing your architecture documentation remains a reliable “source of truth.”
Tools & Technologies
- .NET Aspire (AppHost definitions)
- GitHub Copilot Chat
- Copilot Coding Agent
- Mermaid (for diagrams)
- VS Code + mcp-mermaid
- Playwright MCP (for dashboard screenshots)
- CI/CD Pipelines (automation)
- .NET 10 Preview
Practical Workflow Example
- Define architecture in .NET Aspire AppHost.
- Use Copilot Chat to generate diagrams/ASCII representations of the current architecture.
- Transform ASCII to Mermaid and visualize in VS Code with mcp-mermaid.
- Delegate documentation updates to Copilot Coding Agent, which creates PRs as architecture changes.
- Add dashboard screenshots using Playwright MCP, keeping docs visual and current.
- Integrate the full cycle into your CI/CD pipelines, so documentation always reflects the latest production state.
Benefits
- Minimize outdated or incomplete docs
- Foster transparency and reproducibility for cloud-native .NET Aspire apps
- Deliver a consistent blueprint for development teams
- Lower manual documentation effort and “debt”
Prerequisites
- Laptop with .NET 10 Preview installed
- Familiarity with GitHub Copilot
- VS Code and relevant extensions available
For the full session and additional .NET Conf 2025 video resources, visit: YouTube Playlist – .NET Conf 2025