❔ 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:
Unable to locate the specified template content, the template cache may be corrupted. Try running 'dotnet Microsoft.TemplateEngine.Cli.CommandParsing.BaseCommandInput --debug:reinit' to fix the issue.

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).
Was this page helpful?