I am beginner in C#, and currently trying to build my first project using C#.
But the problem is, I got the error after clicking this button which triggered by Ctrl+Shift+P in VSCode.
> .NET: New Project
The error:
Command ‘.NET: New Project…’ resulted in an error
Unable to get dotnet information to initialize template engine host
I checked I successfully downloaded .NET Install Tool
, C#
from Extensions. And also check to my dotnet version is 8.0.301
.
Has anyone seen this error or know how to figure out this one?
2
Answers
try this
Download .NET 8.0 SDK
you need the .net sdk to create apps without it vs code will be acting more like a text editor
I got the same host engine unable error and I tried closing everything and restarting the entire Mac, turns out it did work perfectly. Most of us never shutdown our Macs so I guess it needs a reboot to work. Try restarting your entire Mac. That’s my solution. Worked for me👍