asp-net-core

ASP.NET Core

what is ASP.net Core?

ASP.NET Core is a cross-platform, high-performance, open-source framework for building modern, cloud-enabled, Internet-connected apps. With ASP.NET Core, you can:

  • Build web apps and services, Internet of Things (IoT) apps, and mobile backends.
  • Use your favorite development tools on Windows, macOS, and Linux.
  • Deploy to the cloud or on-premises.
  • Run on .NET Core.

Why choose ASP.NET Core?

Millions of developers use or have used ASP.NET 4.x to create web apps. ASP.NET Core is a redesign of ASP.NET 4.x, including architectural changes that result in a leaner, more modular framework.

ASP.NET Core provides the following benefits:

Build web APIs and web UI using ASP.NET Core MVC

ASP.NET Core MVC provides features to build web APIs and web apps:

Client-side development

ASP.NET Core integrates seamlessly with popular client-side frameworks and libraries, including BlazorAngularReact, and Bootstrap. For more information, see Introduction to ASP.NET Core Blazor and related topics under Client-side development.

ASP.NET Core target frameworks

ASP.NET Core 3.x and later can only target .NET Core. Generally, ASP.NET Core is composed of .NET Standard libraries. Libraries written with .NET Standard 2.0 run on any .NET platform that implements .NET Standard 2.0.

There are several advantages to targeting .NET Core, and these advantages increase with each release. Some advantages of .NET Core over .NET Framework include:

  • Cross-platform. Runs on Windows, macOS, and Linux.
  • Improved performance
  • Side-by-side versioning
  • New APIs
  • Open source

We recommend the following sequence of tutorials for an introduction to developing ASP.NET Core apps:

  1. Follow a tutorial for the app type you want to develop or maintain.
    TABLE 1
    App type Scenario Tutorial
    Web app New server-side web UI development Get started with Razor Pages
    Web app Maintaining an MVC app Get started with MVC
    Web app Client-side web UI development Get started with Blazor
    Web API RESTful HTTP services Create a web API
    Remote Procedure Call app Contract-first services using Protocol Buffers Get started with a gRPC service
    Real-time app Bidirectional communication between servers and connected clients Get started with SignalR
  2. Follow a tutorial that shows how to do basic data access.
    TABLE 2
    Scenario Tutorial
    New development Razor Pages with Entity Framework Core
    Maintaining an MVC app MVC with Entity Framework Core
  3. Read an overview of ASP.NET Core fundamentals that apply to all app types.
  4. Browse the table of contents for other topics of interest.

†There’s also an interactive web API tutorial. No local installation of development tools is required. The code runs in an Azure Cloud Shell in your browser, and curl is used for testing.

Migrate from .NET Framework

For a reference guide to migrating ASP.NET 4.x apps to ASP.NET Core, see Migrate from ASP.NET to ASP.NET Core.

How to download a sample

Many of the articles and tutorials include links to sample code.

  1. Download the ASP.NET repository zip file.
  2. Unzip the AspNetCore.Docs-main.zip file.
  3. To access an article’s sample app in the unzipped repository, use the URL in the article’s sample link to help you navigate to the sample’s folder. Usually, an article’s sample link appears at the top of the article with the link text View or download sample code.

 

 

This post was part of Topics

Back to home page

 

Leave a Reply

Your email address will not be published. Required fields are marked *