Visual Studio 2015中缺少ASP.net 5预览模板 [英] ASP.net 5 preview templates are missed in Visual Studio 2015

查看:44
本文介绍了Visual Studio 2015中缺少ASP.net 5预览模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了Visual Studio 2015更新3,已经安装了最新的Web Essentials更新,还已经安装了DotnetCore版本.但是当我创建一个新的asp.net项目时,仅提供图片中的asp 4模板

当然,如果选择 ASP.NET Web应用程序(.NET Framework),您将获得常规的MVC 5或Web API 2应用程序.

I have installed Visual Studio 2015 update 3 and have installed the latest Web Essentials update and also have installed DotnetCore version. But when I create a new asp.net project, only asp 4 templates like in the image are available

create form image

解决方案

First of all, there is no ASP.NET 5 anymore. It has officially been renamed to ASP.NET Core 1.0.

You seem to have missed that announcement, which would have made the selections in Visual Studio more obvious. When you choose File > New Project..., you get to a dialog that gives you a choice to go with ASP.NET Web Application (.NET Framework), ASP.NET Core Web Application (.NET Core) or ASP.NET Core Web Application (.NET Framework). This is the dialog before the one you have posted a screenshot of.

NOTE: In order to see all 3 of these options, you need to choose at least .NET Framework 4.5 from the dropdown.

The last two options are for the new ASP.NET Core 1.0 framework. The first of which is to run on the .NET Core library (cross-platform) and the last which is for the .NET Framework 4.6.1 library (which is not cross-platform).

Of course, if you choose ASP.NET Web Application (.NET Framework) , you get a regular MVC 5 or Web API 2 application.

这篇关于Visual Studio 2015中缺少ASP.net 5预览模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆