So I want to start using AvaloniaUI on macOS, but suddenly it always happens.
AvaloniaTeam.vscode-avalonia requested to download the .NET Runtime.
Downloading .NET version(s) 8.0.4~arm64 ....Error
Failed to download .NET 8.0:
Web Request to https://dot.net/v1/dotnet-install.sh Failed: n[r].split is not a function. Aborting. Please ensure that you are online.
To solve that, just open the VSCode settings.json
and configure it with the following settings.
"dotnetAcquisitionExtension.existingDotnetPath": [
{
"extensionId": "ms-dotnettools.csharp",
"path": "/usr/local/share/dotnet/dotnet"
},
{
"extensionId": "ms-dotnettools.csdevkit",
"path": "/usr/local/share/dotnet/dotnet"
},
{
"extensionId": "visualstudiotoolsforunity.vstuc",
"path": "/usr/local/share/dotnet/dotnet"
},
{
"extensionId": "AvaloniaTeam.vscode-avalonia",
"path": "/usr/local/share/dotnet/dotnet"
},
]
That's it, now you can use AvaloniaUI
on VSCode with auto-complete and everything.
References
- Downloads .net Runtime fails ยท Issue #1263 ยท dotnet/vscode-dotnet-runtime ยท GitHub
Top comments (0)