Getting Started with ASP.NET Core

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

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.

image

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

https://github.com/johnconraddomingo/AspNetCore.FirstAspNetCore

Sources:

https://blogs.msdn.microsoft.com/webdev/2016/06/27/announcing-asp-net-core-1-0/
https://www.microsoft.com/net/core#windows
https://dusted.codes/understanding-aspnet-core-10-aka-aspnet-5-and-why-it-will-replace-classic-aspnet

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s