missing “ASP.NET Core Web Application (.NET Core)”

2020-02-12 09:09发布

问题:

I am trying to develop a ASP.NET Core application. I tried following the documentation (for example this tutorial), but I fail to find the ASP.NET Core template. The dialog that should contain it looks like that instead: .

I am using Microsoft Visual Studio Enterprise 2015 Version 14.0.25431.01 Update 3, and installed the Microsoft .NET Core 1.0.1 VS 2015 Tooling Preview 2 (I have also repaired and reinstalled it, without success).

回答1:

Ensure you have the Microsoft Web Development Tools installed which you can find in the Visual Studio installer under Windows and Web Development

Once installed, start up Visual Studio and check your templates again and you should see the ASP.NET Core templates.

Update

Per the comment below,

For those who already had visual studio 2015+ installed but didn't add the feature during the inital installation, you have to download the main visual studio installer and modify its features



回答2:

Fro those who have visual studio 2015 update 3 and selected Windows and Web Development while instaltion, but still can't find .net core. You can go to Microsoft Targeting website download it seprately and install it.



回答3:

I had the same Problem. I installed Install .NET Core 1.0.1 - VS 2015 Tooling Preview 2 and that works



回答4:

Try change the framework version at the top.

If doesn't work, reinstall core and update 3 and watch if any message error shows up.



回答5:

Install .NET Core 1.0.1 - VS 2015 Tooling Preview 2



回答6:

You need to install Microsoft Web Development Tools first (Open Visual Studio installer, choose modify, tick Microsoft Web Development Tools, then update) Then install Microsoft .NET Core 1.0.1 VS 2015 Tooling Preview 2



回答7:

Try updating your ASP.NET and Web tools.
Example