Introduction to ASP.NET Core

 

What is ASP.NET Core?

ASP.NET Core is a significant redesign of ASP.NET. It is a new open-source framework for building modern web applications.  It consists of modular components with minimal overhead, so you retain flexibility while constructing your solutions. For detailed information on ASP.NET Core, please read ASP.NET Core Documentation.

 

Installation of Microsoft .NET Framework 4.5.2 or Newer

ASP.NET Maker scripts require Microsoft .NET Framework 4.5.2 or newer. To download, read Installing the .NET Framework, make sure you install the Developer Pack also.

 

Installing .NET Core On Windows

Please read .NET Core Downloads for instructions. Install the .NET Core SDK, x86 version is recommended so that your apps can run on both x86 or x64 server. If you need to work with Microsoft Access, you must install x86 versions of .NET Core SDK. If you want to test with IIS, install .NET Core (Server Hosting) also.

It is possible to install both x86 and x64 version of .NET Core SDK, to choose which to use, move the path of the selected version before the other under the Path system environment variables, e.g. if you want to use x86 version, move "C:\Program Files (x86)\dotnet\" before "C:\Program Files\dotnet\" and vice versa:


Notes
  1. Above screenshot is captured from Windows 10. Other versions may not have the Move Up/Down button, you need to edit the Path system environment variable yourself.
  2. To edit system environment variables, search Windows Control Panel and find "environment variables".

 

Visual Studio

Visual Studio Community 2017 (or newer) provides the best development experience for creating ASP.NET Core applications for free.

 

ASP.NET Core MVC

ASP.NET Core MVC is a rich framework for building web apps and APIs using the Model-View-Controller design pattern. The Model-View-Controller (MVC) architectural pattern separates an application into three main groups of components: Models, Views, and Controllers. This pattern helps to achieve separation of concerns. Using this pattern, user requests are routed to a Controller which is responsible for working with the Model to perform user actions and/or retrieve results of queries. The Controller chooses the View to display to the user, and provides it with any Model data it requires. Read MVC for details.

 

Routing

Routing middleware is used to map requests to route handlers. Routes are configured when the application starts up, and can extract values from the URL that will be passed as arguments to route handlers. Routing functionality is also responsible for generating links that correspond to routes in ASP.NET apps. Read Routing.

 

Publishing and Deployment

To deploy the web application, you need to publish your project for running in IIS, read Publishing to IIS. The following operations systems are supported:

  • Windows 7 and newer
  • Windows 2008 R2 and newer

 

 

 

 

©2007-2017 e.World Technology Ltd. All rights reserved.