How to create an ASP.NET project based on .NET Core, and not on a full platform?

I read everything about .NET Core after I heard about it for several months. I got Visual Studio 2015, so I decided to give it a try. I go to "File - New Project", select the ASP.NET web application and see that I can only select the full version of the .NET Framework (for example, 4.6). How to create an ASP.NET project based on .NET Core, and not in the full version of the Framework?

I thought there would be several tutorials in this , but I can not find. Everything that I see is based on a complete structure.

+8
visual-studio-2015 .net-core
source share
2 answers

ASP.NET 5.0 Core beta5 ships with RTM VS 2015. Beta6 has just been sent and will be used to update VS 2015. (Read the installation instructions!)

When creating a project from one of the ASP.NET 5 preview templates (empty, web API or web application), it is configured to compile the kernel versions and version 4.5.1 of the Framework each time it is created.

To change this to build only Core, do the following:

  • Project / Properties / Application: change the .NET platform. Framework for .NET Core
  • Open the project.json file and find the "frames" section. Delete "dnx451": {} and save.
  • Build

You are now working on CoreCLR.

+7
source share

You can find the .net kernel and nightly builds:

https://github.com/dotnet/core

https://github.com/dotnet/coreclr

Thanks for the comments and something else not guys ... I can’t delete my answer from the moment of its adoption, so here are some screenshots showing how to get to the new template. Please note that the new version of the framework is not listed where you (at least me) would expect. You can choose tempate asp.net 5 after you really decide to create a web application in one of the framework templates (not 5.0).

VS version

No preview templates

Not in the frame list

I stand fixed: P

+1
source share

All Articles