liveBook · Manning

Chapter 10: Adding legacy apps to Aspire and working with AI agents

What you will learn in chapter 10 of Building Distributed Applications that Work

The chapter introduction explains why existing applications and AI coding assistants matter to Aspire, while previewing migration and integration topics.

After this chapter you will be able to

What it builds on

Section by section

Introduction

The chapter introduction explains why existing applications and AI coding assistants matter to Aspire, while previewing migration and integration topics.

Key terms: existing applications, infrastructure components, databases, message brokers, agentic coding assistants, AI coding assistants, Claude Code

10.1 Migrating old .NET Aspire projects

This section explains why teams may still use older Aspire versions and what the move to Aspire 13 signals about the platform.

Key terms: cloud-first development, old version of Aspire, Aspire 13, evergreen, .NET-exclusive, JavaScript, Python

10.1.1 Migrating from .NET Aspire 8

Explains how to move a .NET Aspire 8 application to Aspire 9 as a manual first step toward Aspire 13.

Key terms: .NET Aspire 8, Aspire 9, Aspire 13, built-in upgrade tools, .csproj, Project tag, Aspire.Hosting.AppHost, hosted integration packages, Aspire-specific client packages, Program.cs

10.1.2 Migrating from .NET Aspire 9 to Aspire 13

This subsection explains how to upgrade an Aspire 9 solution to Aspire 13, optionally simplify its project file, and choose a supported startup file.

Key terms: Aspire 13, aspire CLI tool, SDK, host package, client packages, aspire update, IsAspireHost, Aspire.AppHost.Sdk, Aspire.Hosting.AppHost, Sdk attribute

10.2 Enrolling existing projects in Aspire orchestration

The section explains why enrolling existing .NET applications in Aspire helps local development and outlines how to add orchestration and shared service defaults without yet moving an external database.

Key terms: Aspire orchestration, service discovery, Blazor application, backend API, SQL Server, connection string, aspirification, Aspire Host, Aspire CLI, AppHost.cs

10.3 Reconfiguring the infrastructure components

Shows how to move an existing application's SQL Server setup into Aspire while keeping client changes small and preserving its production database connection.

Key terms: Aspire.Hosting .SqlServer, AppHost.cs, database reference, API service, Full, Minimal, GetConnectionString(), ConnectionStrings, DefaultConnection, sqldb

10.4 Integrating Aspire with AI coding agents

The section explains why AI coding agents need current Aspire information and walks through preparing a solution and assistant for an MCP-enabled exercise.

Key terms: tool calling, Model Context Protocol (MCP), coding agents, claude, aspire init, aspire run, Aspire dashboard

10.4.1 Configuring MCP in Aspire

This section explains how to configure Aspire’s MCP server for a coding assistant and what tools that configuration makes available in the repository.

Key terms: MCP server, Aspire host project, coding assistant, repo folder, list_resources, execute_resource_command, list_console_logs, list_structured_logs, list_traces, list_trace_structured_logs

10.4.2 Using agentic AI to work with Aspire

This section shows how to use a coding agent to plan Aspire AppHost changes, review and implement them safely, and investigate a running Aspire app through MCP.

Key terms: coding assistant, Aspire AppHost model, projects+dependencies, health-check endpoints, WaitFor(), guardrails, AppHost, MCP server, Aspire stack, resources

10.4.3 What are MCP and agentic tool calling?

This section explains how coding assistants use agentic tool calling to act on a development task and how MCP gives them a standard way to discover and use tools.

Key terms: agentic tool calling, LLM, tool invocation, MCP, tools, resources, input schema, output schema, AI agent, MCP server

10.5 Closing thoughts

This closing section frames Aspire as a way to make distributed systems understandable and draws out three principles that apply beyond the framework.

Key terms: distributed systems, services, infrastructure, Infrastructure is code, resources declaratively, Observability is a feature, Local confidence enables production confidence

10.6 Summary

Concepts explained in this chapter

← Chapter 9: Deploying Aspire apps to production

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.