简体   繁体   English

Visual Studio 2019 中缺少 ASP.NET 核心 Web 应用程序

[英]Missing ASP.NET Core Web Application from Visual Studio 2019

I am trying to build a new project at visual studio but I cant find "ASP.NET Core Web Application" from my visual studio.我正在尝试在 Visual Studio 中构建一个新项目,但我无法从我的 Visual Studio 中找到“ASP.NET Core Web 应用程序”。 I find only ("ASP.NET Core Web Application(.net FRAMEWORK")).我只找到(“ASP.NET Core Web 应用程序(.net FRAMEWORK”))。 I tried everything.我什么都试过了。 I updated visual studio.我更新了视觉工作室。 I have installed everything of its package and still nothing.我已经安装了它的 package 的所有东西,但仍然没有。 I downloaded the Visual studio 2017 and I finally had it but at visual studio 2019 it is I can't.我下载了 Visual Studio 2017,我终于有了它,但在 Visual Studio 2019 上我不能。 Looking forward for any opinion.期待任何意见。 thank you!谢谢你!

It's because Visual Studio changed the name of: ASP.NET Core Web Application to ASP.NET Core Web App .这是因为 Visual Studio 将名称改为: ASP.NET Core Web ApplicationASP.NET Core ZC6E190B2584639 DACE83C48

https://i.stack.imgur.com/zoHFH.png https://i.stack.imgur.com/zoHFH.png

In order to get .NET Core templates you should为了获得 .NET 核心模板,您应该

  1. Open Visual Studio Installer (press Win key and search for it)打开 Visual Studio 安装程序(按 Win 键并搜索)
  2. Click on "Modify点击“修改
  3. Check "ASP.NET and web development", then scroll to the bottom and check ".NET Core cross-platform development"勾选“ASP.NET和web开发”,然后滚动到底部勾选“.NET Core跨平台开发”
  4. Click "Modify" in left bottom corner and wait for it to install点击左下角的“修改”,等待安装

I just had a very similar issue.我只是有一个非常相似的问题。 I did have "ASP.NET and web development" and ".NET Core cross-platform development" installed as suggested by @krazors.我确实按照@krazors 的建议安装了“ASP.NET 和 web 开发”和“.NET Core 跨平台开发”。 However, there were no APS.NET Core templates available.但是,没有可用的 APS.NET Core 模板。

The issue was eventually resolved by rebooting.该问题最终通过重新启动解决。

You can add ASP.NET Core Web API to your project您可以将 ASP.NET Core Web API 添加到您的项目中

I had same problem.我有同样的问题。 I was missing.Net 5.0 Sdk.我错过了.Net 5.0 Sdk。 Firstly modify vs from vs installer by removing ASP.NET and Web Development.首先从 vs 安装程序修改 vs,删除 ASP.NET 和 Web 开发。 Then install.Net 5.0.然后安装.Net 5.0。 Lastly modify vs back by uploading ASP.NET and Web Development on vs installer.最后通过在 vs 安装程序上上传 ASP.NET 和 Web 开发来修改 vs。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Visual Studio 2019 中缺少 ASP.NET 核心 Web 应用程序模板和所有 ASP.Net 核心模板 - Missing ASP.NET Core Web Application Template and all ASP.Net Core Templates in Visual Studio 2019 在Visual Studio 2015更新3中缺少“ASP.NET核心Web应用程序(.NET核心)”模板? - missing “ASP.NET Core Web Application (.NET Core)” template in Visual studio 2015 update 3? ASP.Net Core 3.0 Web 应用程序和 Vue 超时异常 Visual Studio 2019 v16.4 - ASP.Net Core 3.0 web application and Vue time out exception Visual Studio 2019 v16.4 缺少“ASP.NET Core Web 应用程序(.NET Core)”模板 - missing “ASP.NET Core Web Application (.NET Core)” template 在使用 visual studio 2019 运行应用程序时,如何防止在 Asp.Net Core API 3.1 中自动生成 web.config? - How to prevent auto-generated web.config in Asp.Net Core API 3.1 while running the application using visual studio 2019? 如何在Visual Studio 2017 ASP.NET核心Web应用程序中集成Bootstrap 4? - How to integrate Bootstrap 4 in Visual Studio 2017 ASP.NET Core Web Application? 如何在不使用 Visual Studio 的情况下直接在 Dockers 容器上运行 ASP.NET Core Web 应用程序 - How to run an ASP.NET Core Web Application on Dockers container directly without using Visual Studio Visual Studio 2013解决方案中缺少ASP.NET Web模板吗? - ASP.NET Web template missing in visual studio 2013 solution? 使用 Visual Studio 代码创建 Asp.net MVC 应用程序(非核心) - Create Asp.net MVC Application (not core) with visual studio code Visual Studo 2015中缺少ASP.NET Web应用程序 - Missing ASP.NET Web Application in visual studo 2015
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM