Add to Learning
Introduction to ASP.NET Core
By Daniel Roth, Rick Anderson, and Shaun Luttin
ASP.NET Core is a cross-platform, high-performance, open-source framework for building modern, cloud-based, Internet-connected applications. With ASP.NET Core, you can:
• Build web apps and services, 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 or .NET Framework.
Why choose ASP.NET Core?
Millions of developers have used (and continue to use) ASP.NET 4.x to create web apps. ASP.NET Core is a redesign of ASP.NET 4.x, with architectural changes that result in a leaner, more modular framework.
ASP.NET Core provides the following benefits:
• A unified story for building web UI and web APIs.
• Architected for testability.
• Razor Pages makes coding page-focused scenarios easier and more productive.
• Blazor lets you use C# in the browser alongside JavaScript. Share server-side and client-side app logic all written with .NET.
• Ability to develop and run on Windows, macOS, and Linux.
• Open-source and community-focused.
• Integration of modern, client-side frameworks and development workflows.
• A cloud-ready, environment-based configuration system.
• Built-in dependency injection.
• A lightweight, high-performance, and modular HTTP request pipeline.
• Ability to host on IIS, Nginx, Apache, Docker, or self-host in your own process.
• Side-by-side app versioning when targeting .NET Core.
• Tooling that simplifies modern web development.
Build web APIs and web UI using ASP.NET Core MVC
ASP.NET Core MVC provides features to build web APIs and web apps:
• The Model-View-Controller (MVC) pattern helps make your web APIs and web apps testable.
• Razor Pages is a page-based programming model that makes building web UI easier and more productive.
• Razor markup provides a productive syntax for Razor Pages and MVC views.
• Tag Helpers enable server-side code to participate in creating and rendering HTML elements in Razor files.
• Built-in support for multiple data formats and content negotiation lets your web APIs reach a broad range of clients, including browsers and mobile devices.
• Model binding automatically maps data from HTTP requests to action method parameters.
• Model validation automatically performs client-side and server-side validation.
Client-side development
ASP.NET Core integrates seamlessly with popular client-side frameworks and libraries, including Blazor, Angular, React, and Bootstrap. For more information, see Introduction to Blazor in ASP.NET Core and related topics under Client-side development.
ASP.NET Core targeting .NET Framework
ASP.NET Core 2.x can target .NET Core or .NET Framework. ASP.NET Core apps targeting .NET Framework aren’t cross-platform—they run on Windows only. Generally, ASP.NET Core 2.x is made up of .NET Standard libraries. Libraries written with .NET Standard 2.0 run on any .NET platform that implements .NET Standard 2.0.
ASP.NET Core 2.x is supported on .NET Framework versions that implement .NET Standard 2.0:
• .NET Framework 4.7.1 and later is strongly recommended.
• .NET Framework 4.6.1 and later.
ASP.NET Core 3.0 and later will only run on .NET Core. For more details regarding this change, see A first look at changes coming in ASP.NET Core 3.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 macOS, Linux, and Windows.
• Improved performance
• Side-by-side versioning
• New APIs
• Open source
We’re working hard to close the API gap from .NET Framework to .NET Core. The Windows Compatibility Pack made thousands of Windows-only APIs available in .NET Core. These APIs weren’t available in .NET Core 1.x.
Recommended learning path
We recommend the following sequence of tutorials and articles for an introduction to developing ASP.NET Core apps:
1. Follow a tutorial for the type of app you want to develop or maintain:
App type
|
Scenario
|
Tutorial
|
Web app
|
For new development
|
|
Web app
|
For maintaining an MVC app
|
|
Web API
|
||
Real-time app
|
2. Follow a tutorial that shows how to do basic data access:
Scenario
|
Tutorial
|
For new development
|
|
For maintaining an MVC app
|
3. Read an overview of ASP.NET Core features that apply to all app types:
a. Fundamentals
4. Browse the Table of Contents for other topics of interest.
* There is a new web API tutorial that you follow entirely in the browser, no local IDE installation required. The code runs in an Azure Cloud Shell, and curl is used for testing.
Source Credit: https://bit.ly/2GgHe5b
For Tutorial click https://www.tutorialspoint.com/asp.net_core/asp.net_core_environment_setup.htm
For Tutorial click https://www.tutorialspoint.com/asp.net_core/asp.net_core_environment_setup.htm