Search code examples
c#asp.netvisual-studioasp.net-core

Missing ASP.NET Core Web Application Template and all ASP.Net Core Templates in Visual Studio 2019


I do have a very odd problem with Visual Studio 2019 (Professional version 16.9.2) when trying to create a new project with a ASP.NET Core Web Application template.

Although I have a a lot of templates available, my list of new project is desperately not showing the template, and none of ASP.Net Core ones (the ones with the little planet, a circle and a blue dot icon) this is the icon I don't have, it's not taken from my machine

My version of VS is up to date, I've installed the .NET Core cross-platform development my Visual Studio configuration

I've installed the .NET Core package (I tried with all versions).

No matter which option I'm chosing in the Update tool, I still have the same list of templates, it never changes.

I've reinstalled VS from scatch. I've tried on 4 different machines (1 physical machine, 1 virtual desktop and 2 servers). I've also tried from line command prompt by using dotnet new, but I do have exactly the same list then the one in VS.

I've also tried to change the templates location from my local profile folder to the C:\Program Files(x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\ProjectTemplates But the templates list remains the same.

I'm out of ideas, sounds like I tried almost everything, for now I'm stuck!

If anyone among you has any idea or already had this issue, please let me know!

Thanks everyone for any help you could grant.


Solution

  • I finally found a way to have the 'missing' template. It seems that in VS 2019 the ASP.NET Core Web Application template has been replaced by the ASP.NET Core Empty. I had to tweak it a little, but seems to be now Ok.

    I hope this helps some folks