microsoft / microsoft/aspire

The project doesn't know how to run command WSL from launchsettings.json

Open
#2,874 2 comments 0 reactions 1 assignee Claimed by @vijayrkn View on GitHub
area-tooling wsl
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

I can run a dotnet project using command WSL from visual studio. However, it fails to run an aspire project this way. Below are two settings I used.

```json
//dotnet
{
"profiles": {
"Test": {
"commandName": "WSL",
"launchBrowser": true,
"launchUrl": "index.html",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "https://localhost:5001"
}
}
```

```json
//aspire
{
"$schema": "http://json.schemastore.org/launchsettings.json",
"profiles": {
"WSL": {
"commandName": "WSL",
"dotnetRunMessages": true,
"launchBrowser": true,
"applicationUrl": "http://localhost:5132",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.