microsoft / microsoft/aspire

Aspire CLI warns that CLI is required...

Open
#19,611 4 comments 0 reactions 0 assignees View on GitHub
area-cli triage:bot-seen
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Describe the bug

When I look at the log file for a CLI build after `aspire run`, I get a warning complaining that "Some Aspire features require the Aspire CLI bundle". Despite the fact I ran the build with the Aspire CLI - `aspire run`

```
ASPIRE010: AlexCrome.Aspire.Hosting.UserJwts.AppHost is configured with AspireUseCliBundle=false. Some Aspire features require the Aspire CLI bundle. Set AspireUseCliBundle=true to enable those features, or suppress ASPIRE010 to continue without the bundle. See https://aka.ms/aspire/diagnostics/aspire010 for more information.
```

### Expected Behavior

I ran this from the CLI, there shouldn't be a warning about needing the CLI.

### Steps To Reproduce

1. `aspire run`
2. Look at the CLI Logfile

The above example was specifically repoed with https://github.com/afscrome/aspire-dotnet-jwts but I've seen it with several projects, so I don't think the project really matters.

### Exceptions (if any)

```
[2026-08-23 13:09:05.696] [DBUG] [ProcessExecutionFactory] dotnet(36172) waiting for exit
[2026-08-23 13:09:06.135] [INFO] [Build] Determining projects to restore...
[2026-08-23 13:09:06.431] [INFO] [Build] All projects are up-to-date for restore.
[2026-08-23 13:09:06.454] [INFO] [Build] C:\Users\alex\.nuget\packages\aspire.hosting.apphost\13.5.0\build\Aspire.Hosting.AppHost.targets(157,5): warning ASPIRE010: AlexCrome.Aspire.Hosting.UserJwts.AppHost is configured with AspireUseCliBundle=false. Some Aspire features require the Aspire CLI bundle. Set AspireUseCliBundle=true to enable those features, or suppress ASPIRE010 to continue without the bundle. See https://aka.ms/aspire/diagnostics/aspire010 for more information. [S:\aspire-dotnet-jwts\.claude\worktrees\fix-namespace-inconsistencies-9d29a4\playground\AppHost\AlexCrome.Aspire.Hosting.UserJwts.AppHost.csproj]
```

### Aspire doctor output

```
Checking Aspire environment...

Aspire Environment Check
========================

Aspire
⚠️ Aspire CLI version 13.5.1 (channel: stable) is out of date. Latest version is 13.5.2 (channel: stable)
Run 'aspire update' to update Aspire CLI.
✅ Developer Control Plane (DCP) connection health checks succeeded

AppHost
✅ AppHost version 13.5.0 (playground\AppHost\AlexCrome.Aspire.Hosting.UserJwts.AppHost.csproj)

.NET SDK
✅ .NET 10.0.400 installed (x64)

Container Runtime
⚠️ Docker: installed but not running ← active
Start Docker Desktop

Environment
✅ Operating system: Windows 10.0.26200.0
✅ HTTPS development certificate is trusted

Development Tools
✅ Aspire extension for VS Code is installed

Summary: 6 passed, 2 warnings, 0 failed
For detailed prerequisites: https://aka.ms/aspire-prerequisites

Aspire CLI Installations
========================

╭────────────────────────────────────────┬────────────────────────────────────────┬──────────┬───────────┬─────────────╮
│ Path │ Version │ Channel │ Route │ PATH status │
├────────────────────────────────────────┼────────────────────────────────────────┼──────────┼───────────┼─────────────┤
│ C:\Users\alex\.aspire\bin\aspire.exe │ 13.5.1+69db530a4816698cf1d5fa4557933e0 │ stable │ (unknown) │ active │
│ (current) │ ac4f127c6 │ │ │ │
│ C:\Users\alex\.aspire\dogfood\pr-18930 │ 13.5.0-pr.18930.g9d15e424 │ pr-18930 │ pr │ not on PATH │
│ \bin\aspire.exe │ │ │ │ │
╰────────────────────────────────────────┴────────────────────────────────────────┴──────────┴───────────┴─────────────╯
```

### Anything else?

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by tracing the ASPIRE010 warning from Aspire.Hosting.AppHost.targets, especially the reported line 157, through the `aspire run` build path. Reproduce with `aspire run` and inspect the CLI logfile; done means the CLI invocation no longer warns that the Aspire CLI bundle is required.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
build-system, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.