Prerequisites
.NET Aspire requires the following software to be installed on your system:.NET SDK
Install .NET 9.0 or Later
Aspire requires .NET 9.0 SDK or later.Download and install from dotnet.microsoft.com/download
If you have an older version of .NET, you can install multiple versions side-by-side. The Aspire CLI will use the correct version automatically.
Container Runtime
Aspire uses containers to run infrastructure services like databases, caches, and message queues during development.- Docker Desktop
- Podman
Docker Desktop is the recommended choice for most users.Windows
- Download from docs.docker.com/desktop/install/windows-install
- Run the installer
- Restart your computer if prompted
- Start Docker Desktop from the Start menu
- Download from docs.docker.com/desktop/install/mac-install
- Drag Docker.app to your Applications folder
- Launch Docker from Applications
- Follow the installation guide at docs.docker.com/desktop/install/linux-install
- Start Docker Desktop
Install Aspire CLI
The Aspire CLI is the primary tool for creating, running, and managing Aspire applications.Stable Release (Recommended)
Install the latest stable version of the Aspire CLI:Daily Builds (Preview Features)
If you want to try the latest features before they’re released, you can install daily builds:Verify Installation
Check that the CLI is installed correctly:The Aspire CLI is installed to
~/.aspire/bin on macOS/Linux or %USERPROFILE%\.aspire\bin on Windows. The installer automatically adds this to your PATH.If the aspire command isn’t found, restart your terminal or add the directory to your PATH manually.Optional: Install VS Code Extension
The Aspire VS Code extension provides a better development experience with IntelliSense, debugging support, and integrated terminal commands.Install Extension with CLI
The easiest way is to install both the CLI and extension together:Install Extension from VS Code
Alternatively, install directly from VS Code:- Open VS Code
- Go to Extensions (Ctrl+Shift+X or Cmd+Shift+X)
- Search for “Aspire”
- Click Install on the .NET Aspire extension
If you use VS Code Insiders, add the
-UseInsiders (PowerShell) or --use-insiders (bash) flag when installing with the CLI.Optional: Configure Visual Studio
If you use Visual Studio, ensure you have the right version and workloads.Requirements
- Visual Studio 2022 version 17.14 or later
- ASP.NET and web development workload
Install Visual Studio
Download Visual Studio
Get Visual Studio 2022 from visualstudio.microsoft.com/vs
Select Workloads
During installation, select:
- ✅ ASP.NET and web development
- ✅ .NET desktop development (optional, for desktop apps)
Visual Studio has built-in support for Aspire. You don’t need to install a separate extension.
Platform-Specific Notes
Windows
-
PowerShell Execution Policy: If you get an error about execution policy when running the install script, run:
- WSL2: If you’re using WSL2, you can install Aspire inside WSL and use Docker Desktop for Windows with WSL2 integration enabled.
macOS
- Apple Silicon (M1/M2/M3): The Aspire CLI works natively on Apple Silicon. Make sure you have the ARM64 version of .NET installed.
- Rosetta: You don’t need Rosetta for Aspire itself, but some container images may require it.
Linux
- Alpine Linux: Aspire supports Alpine Linux, but requires additional setup for gRPC tooling. See the Alpine Linux section below.
- Architecture: Aspire primarily supports x64/amd64. ARM64 support varies by integration.
Alpine Linux Setup
Special setup for Alpine Linux users
Special setup for Alpine Linux users
If you’re building on Alpine Linux, you need musl-compatible gRPC tooling:
-
Install the gRPC plugins:
-
Set environment variables to use the musl-compatible binaries:
-
Add these to your shell profile (e.g.,
~/.bashrcor~/.zshrc) to make them permanent.
Verify Complete Installation
Let’s verify everything is installed correctly by creating a test project:Create a Test Project
- Project name:
test-app - Output path:
./test-app - Template version:
stable
Run the Application
- Build output
- Dashboard URL
- Resources starting up
- Your browser opening to the dashboard
Verify Dashboard
In the dashboard, you should see:
- 3 resources:
cache,apiservice,webfrontend - All resources showing as “Running”
- Green status indicators
If all steps completed successfully, your installation is complete! You’re ready to start building Aspire applications.
Update Aspire
Update CLI
To update to the latest version of the Aspire CLI, run the installation command again:Update Existing Projects
To update an existing project to use the latest Aspire packages:- Updates all Aspire NuGet packages to the latest version
- Updates the NuGet.config if needed
- Restores packages
Run
aspire update from the root directory of your Aspire solution.Uninstall Aspire
If you need to uninstall Aspire:Uninstall CLI
- Windows
- macOS/Linux
Delete the Aspire directory and remove from PATH:Then remove
%USERPROFILE%\.aspire\bin from your PATH environment variable.Uninstall VS Code Extension
- Open VS Code
- Go to Extensions (Ctrl+Shift+X or Cmd+Shift+X)
- Find the .NET Aspire extension
- Click Uninstall
Troubleshooting
'aspire' command not found
'aspire' command not found
The CLI installation directory is not in your PATH.On Windows, add to PATH:
- Open System Properties → Environment Variables
- Under User Variables, edit PATH
- Add
%USERPROFILE%\.aspire\bin - Restart your terminal
Docker daemon not running
Docker daemon not running
When you run
aspire run, you get an error about Docker not being available.Solution:- Start Docker Desktop (Windows/Mac) or the Docker service (Linux)
- Wait for it to finish starting (you’ll see the icon in the system tray)
- Verify with
docker ps - Run
aspire runagain
Permission denied on Linux
Permission denied on Linux
You get a permission error when running Docker commands.Solution: Add your user to the docker group:Or use Podman, which doesn’t require root privileges.
Port conflicts
Port conflicts
The dashboard or services can’t start because ports are already in use.Solution: Aspire will automatically try different ports. If you need to free up ports:Find what’s using a port:Kill the process or specify different ports in your AppHost:
NuGet restore failures
NuGet restore failures
Package restore fails with errors about missing feeds or authentication.Solution:
- Make sure you have internet connectivity
- Clear NuGet caches:
- Try restoring again:
Visual Studio can't find Aspire templates
Visual Studio can't find Aspire templates
When creating a new project in Visual Studio, Aspire templates don’t appear.Solution:
- Make sure you have Visual Studio 2022 17.14 or later
- Update to the latest version via Help → Check for Updates
- Repair Visual Studio installation if needed
- Restart Visual Studio
Next Steps
Now that Aspire is installed, you’re ready to build your first application!Quickstart
Create and run your first Aspire app in 5 minutes
Core Concepts
Learn about the app model and how Aspire works
CLI Reference
Explore all CLI commands and options
Integrations
Discover available integrations for databases, messaging, and more
Additional Resources
- Official Documentation: aspire.dev/docs
- Sample Applications: github.com/dotnet/aspire-samples
- Discord Community: Join the .NET Aspire Discord for help and discussions
- GitHub Repository: github.com/dotnet/aspire
If you encounter any issues not covered here, check the GitHub Issues or ask in the community Discord.