Skip to content

Aspire VS Code extension cannot launch CLI on Windows when Aspire is installed as a global .NET tool and resolves to aspire.cmd #17306

@kbkjeldsen

Description

@kbkjeldsen

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

On Windows, the Aspire VS Code extension reports that the Aspire CLI is not installed or does not support the required feature, even though the CLI is installed and works from PowerShell.

In my environment I cannot use the official install script or install a standalone .exe because of enterprise security constraints. I installed the CLI with:

dotnet tool install --global Aspire.Cli

After that, aspire --version works in PowerShell, but the Aspire extension still fails and the Aspire sidebar shows:

The Aspire CLI is not installed or does not support this feature. Install or update the Aspire CLI and restart VS Code to get started.

Image

PowerShell can resolve and run the aspire command successfully, but the extension fails to launch it.

Image

Safe log excerpt from the Aspire extension log:

[warning] aspire describe --follow error: spawn aspire ENOENT
[warning] Error fetching running AppHosts: spawn aspire ENOENT

Expected Behavior

The Aspire VS Code extension finds the installed Aspire CLI and loads without any issues.

Steps To Reproduce

  1. On Windows, install Aspire CLI as a global .NET tool:
    dotnet tool install --global Aspire.Cli
  2. Restart VS Code or the machine.
  3. Confirm the CLI works in PowerShell:
    aspire --version
  4. Open VS Code with the Aspire extension installed.
  5. Open the Aspire sidebar / Running AppHosts view.

Exceptions (if any)

No response

Aspire doctor output

Aspire Environment Check

.NET SDK
✅ .NET 10.0.300 installed (x64)

Container Runtime
✅ Docker v29.3.1: running (auto-detected (default)) ← active

Environment
✅ HTTPS development certificate is trusted

Summary: 3 passed, 0 warnings, 0 failed

Anything else?

No response

Metadata

Metadata

Assignees

Labels

Type

No fields configured for Bug.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions