C#C
C#8mo ago
VoidPointer

Avalonia Templates Install Errors

I'm following the official Get Started->Install guide on the Avalonia website, and it tells me to run:
dotnet new install Avalonia.Templates

This gives several complaints about "It is only possible to use this template with SDK-style projects". The full output of this command can be seen here: https://pastebin.com/9xMgCran

Then I'm told, "To list the installed templates run dotnet new list". According to the guide I should see these templates:
Avalonia App
Avalonia MVVM App
Avalonia Cross Platform Application
Avalonia Resource Dictionary
Avalonia Styles
Avalonia TemplatedControl
Avalonia UserControl
Avalonia Window

I have a lot of other, unrelated templates installed, so when I run dotnet new list I obviously won't only see Avalonia templates, but I do only see these Avalonia templates included in all my installed templates:
Avalonia .NET App
Avalonia .NET MVVM App
Avalonia Cross Platform Application

I do have these SDKs installed:
8.0.408 [C:\Program Files\dotnet\sdk]
9.0.201 [C:\Program Files\dotnet\sdk]

Any advice on why all the templates won't install would be greatly appreciated.
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Was this page helpful?