Home > OS >  How to fix "failed to create template" when creating new dotnet project?
How to fix "failed to create template" when creating new dotnet project?

Time:06-30

I'm trying to write my fist console app walking through this tutorial : https://dotnet.microsoft.com/en-us/learn/dotnet/hello-world-tutorial/install

after installing .NET sdk and opening a new command prompt and running the following command:dotnet everything went smoothly but after entering this command:

dotnet new console -o MyApp -f net6.0

this error showed up

enter image description here

any solutions?

CodePudding user response:

I think the answer here should be easy. You are inside the System32 folder in Windows, which is critical and normally you do not have Writing Permissions in there, because it is VERY critical to the windows operating System and you should store your projects in another folder.

Maybe try another folder, like Documents or something like that, or is there a reason you want to do that there?

You can read through the forum at This Link, if you want to know more about it. There also stands, how you can access this specific folder if you really want to. (Which I really do not recommend, unless you really know your stuff)

  •  Tags:  
  • c#
  • Related