Is there an existing issue for this?
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.
PowerShell can resolve and run the aspire command successfully, but the extension fails to launch it.
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
- On Windows, install Aspire CLI as a global .NET tool:
dotnet tool install --global Aspire.Cli
- Restart VS Code or the machine.
- Confirm the CLI works in PowerShell:
aspire --version
- Open VS Code with the Aspire extension installed.
- 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
Is there an existing issue for this?
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
.exebecause of enterprise security constraints. I installed the CLI with:dotnet tool install --global Aspire.CliAfter that,
aspire --versionworks in PowerShell, but the Aspire extension still fails and the Aspire sidebar shows:PowerShell can resolve and run the
aspirecommand successfully, but the extension fails to launch it.Safe log excerpt from the Aspire extension log:
Expected Behavior
The Aspire VS Code extension finds the installed Aspire CLI and loads without any issues.
Steps To Reproduce
dotnet tool install --global Aspire.Cliaspire --versionExceptions (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