DEV Community

junian
junian

Posted on • Originally published at junian.net on

VSCode Avalonia Extension Download .NET Runtime Issue

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"
    },
]
Enter fullscreen mode Exit fullscreen mode

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

Heroku

Deliver your unique apps, your own way.

Heroku tackles the toil — patching and upgrading, 24/7 ops and security, build systems, failovers, and more. Stay focused on building great data-driven applications.

Learn More

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Engage with a wealth of insights in this thoughtful article, valued within the supportive DEV Community. Coders of every background are welcome to join in and add to our collective wisdom.

A sincere "thank you" often brightens someone’s day. Share your gratitude in the comments below!

On DEV, the act of sharing knowledge eases our journey and fortifies our community ties. Found value in this? A quick thank you to the author can make a significant impact.

Okay