❔ Error whilst creating new project
Hey everyone.
I get this error every time I try to create a new project using dotnet and the template avalonia.mvvm:
I tried running the command but it isnt recognized by dotnet as a valid command. Is there another way of reloading the template cache?
things I've tried:
-restarting
-reinstalling the dotnet-sdk package
I'm on arch linux btw and installed dotnet using pacman (i.e. native package).
17 Replies
Which SDK did you install?
6.0
Did it install to a different place than pre-existing dotnet/did you change dotnet_root env var?
I'm just guessing at things. Don't know how it's meant to be
not that i would know. I installed it without any extra perameters (eg.
pacman -S dotnet-sdk-6.0
). which dotnet
returns /usr/bin/dotnet
that should be the default install directoryWhat about dotnet --list-sdks
And what template are you trying to create?
dotnet --list-sdks
returned one sdk. 6.0.114 [/usr/share/dotnet/sdk]
avalonia.mvvn but other templates work. Sorry that I just realized it nowDid you run an extra step to install avalonia templates?
no. I used
dotnet new avalonia.mvvm -o example
That is not a normal bundled template afaik.
yes. you have to install it from the avalonia guthub
GitHub
GitHub - AvaloniaUI/avalonia-dotnet-templates: Avalonia Templates f...
Avalonia Templates for
dotnet new
. Contribute to AvaloniaUI/avalonia-dotnet-templates development by creating an account on GitHub.dotnet new will list the available templates
yes. avalonia.mvvm is a valid template in dotnet new --list
You sometimes call it
mvvn
in your messages
Make sure you're not misspelling it like that when using the commandyeah, no, I didnt misspell it in the command but thanks
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.