What is it?
ASP.NET Core is an open source web framework for building modern web applications that can be developed and run on Windows, Linux and the Mac. It includes the MVC framework, which now combines the features of MVC and Web API into a single web programming framework.
What You Need
- Either Visual Studio 2015 with Update 3 or the free Visual Studio Community Edition
- .NET Core 1.0.0 – VS 2015 Tooling Preview 2
Creating from the Visual Studio Template
From File > New > Project, you will see the .NET Core template. For this quick blog, i chose the Web Application. MVC pattern is obviously a default.
If you instead go to the Web Section, you will have these templates
- NET Web Application – the ASP.NET application templates you’ve known and used
- NET Core Web Application (.NET Core) – This will start you with a cross-platform compatible project that runs on the .NET Core framework
- NET Core Web Application (.NET Framework) – This starts a new project that runs on the standard .NET Framework on Windows
What You’ll Notice
- Restructure: Core is supposed to be a much smaller and modular: And so you’ll notice
- Lightweight: Web Applications, whether it be the legacy Webforms, or MVC has been a hog in the last few releases as Microsoft likes to showcase what you can do out of the box. That’s all good, except that if you don’t do a lot of cleanup, you’ll end up with deploying a lot of stuff to production that you don’t really need
- Initial Download of Packages: Yes, it’s modular and that’s probably the first thing you’ll notice as you create a project. It will pick up the necessary Nuget packages for you. That tells you that these packages aren’t tightly integrated with the framework much like System.Web is.
- Change in Visual Studio files: You’ll notice that .csproj has been replaced by project.json. It was done this way to make development in Mac a first class citizen. It also makes it easier to modify the project options because it’s json. The same is true with every other files that used to be exclusively associated with Visual Studio
My first ASP.NET Core Application