在听了几个月后,我正在阅读关于.NET Core的所有内容。我有Visual Studio 2015,所以我想我会尝试一下。我进入File - New Project,选择ASP.NET Web Application,看看我只能选择完整.NET Framework的一个版本(例如4.6)。 如何基于.NET Core创建ASP.NET项目,而不是在完整的框架上创建?
答案 0 :(得分:7)
VS 2015 RTM附带的ASP.NET 5.0 Core beta5。 Beta6刚刚发货并用于升级VS 2015.(阅读安装说明!)
当您从其中一个ASP.NET 5预览模板(空,Web API或Web应用程序)创建项目时,它被设置为每个都编译两个 Core和4.5.1 Framework版本你建立的时间。
要将其更改为仅构建核心,请执行以下操作:
您现在正在使用CoreCLR。
答案 1 :(得分:1)
You can find the .net core and nightly builds at:
https://github.com/dotnet/core
https://github.com/dotnet/coreclr
Thanks for the comments and whatnot guys... Can't delete my answer since it's accepted, so here's some screenshots showing how to get to the new template. Note that the new framework version is not listed where you (at least I) would expect. You can choose the asp.net 5 tempate after you actually choose to create a web application in one of the (non 5.0) framework templates.