dotnet / dotnet/vscode-dotnet-runtime

Blazor wasm cannot debug on macOS M1

Open
#496 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
209
Forks
455
PR merge metrics
No merged PRs in 30d

Description

I've been unable to debug Blazor wasm on macOS M1; I've tried latest dotnet6, dotnet7 preview. Seams that the debugger wants to run on dotnet 5 which doesn't exist for M1 chipset

**Repro steps:**

1. install dotnet core2.
2. dotnet new blazorwasm -n wasmTest001
3. create launchSettings.json
```
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch and Debug Standalone Blazor WebAssembly App",
"type": "blazorwasm",
"request": "launch",
"cwd": "${workspaceFolder}"
}
]
}
```
5. Run and debug

**Extension Version:** 1.0.0
**Error Message:** .NET Acquisition Failed: Installation failed: Error: Command failed: "/Users/anonymous/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-1.5.0/dist/install scripts/dotnet-install.sh" -InstallDir "/Users/anonymous/Library/Application Support/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/5.0.17" -Version 5.0.17 -Runtime dotnet
dotnet_install: Error: Could not find `.NET Core Runtime` with version = 5.0.17
dotnet_install: Error: Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support

**Error Stack:** Error: .NET Acquisition Failed: Installation failed: Error: Command failed: "/Users/anonymous/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-1.5.0/dist/install scripts/dotnet-install.sh" -InstallDir "/Users/anonymous/Library/Application Support/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/5.0.17" -Version 5.0.17 -Runtime dotnet
dotnet_install: Error: Could not find `.NET Core Runtime` with version = 5.0.17
dotnet_install: Error: Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support

at /Users/anonymous/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-1.5.0/dist/extension.js:2:13750

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.