ASP.NET Core: Difference between revisions

Content deleted Content added
Questbox (talk | contribs)
m Clarified some things.
6.0 is no longer maintained
 
(90 intermediate revisions by 66 users not shown)
Line 1:
{{Short description|Open-source web application framework}}
{{Infobox software
| name = ASP.NET Core
Line 8 ⟶ 9:
| caption =
| collapsible = <!-- Any text here will collapse the screenshot. -->
| author = [[Microsoft]]
| developer = [[Microsoft.NET Foundation]] and the open source community
| released = <!-- {{Start date and age|YYYY2016|MM06|DD|df=yes/no07}} -->
| discontinued = <!-- Set to yes if software is discontinued, otherwise omit. -->
| ver layout = <!-- simple (default) or stacked -->
| latest release version = 3v8.0.0
| latest release date = {{Start date and age|20192023|0911|2314|df=yes}}<ref>{{Cite web|urldate=https://github.com/aspnet/AspNetCore2023-11-14|title=Announcing ASP.NET Core is a cross-platformin .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.8|url=https: aspnet/AspNetCore/devblogs.microsoft.com/dotnet/announcing-asp-net-core-in-dotnet-8/|access-date=October2023-11-19|website=.NET 20, 2019Blog|vialanguage=GitHuben-US}}</ref>
| latest preview version =
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes/no}} -->
| repo = <!-- {{URL|example.org}} -->
| programming language = [[C Sharp (programming language)|C#]]
| operating system = [[Microsoft Windows|Windows]], [[macOS]] and, [[Linux]]
| platform = [[Cross-platform]]
| size =
Line 26 ⟶ 25:
| language footnote =
| genre = [[Web framework]]
| license = [[ApacheMIT License 2.0]]<ref name="GHlicense">{{cite web|url=https://github.com/aspnet/AspNetCore/blob/master/LICENSE.txt| title= ASP.NET Core license|website=[[GitHub]] |accessdateaccess-date=20192021-0109-0829}}</ref>
| alexa =
| website = {{URL|https://dotnet.microsoft.com/apps/aspnet}}
Line 32 ⟶ 31:
| AsOf =
}}
'''ASP.NET Core''' is a [[free andan open-source]] [[modular web-application framework. It is a redesign of [[ASP.NET]], andthat higherunites performancethe thanpreviously separate [[ASP.NET MVC]], and [[ASP.NET Web API]] into a single [[programming model]].<ref>{{Cite web|url=https://docs.microsoft.com/en-us/aspnet/core/fundamentals/choose-aspnet-framework|title=Choose between ASP.NET 4.x and ASP.NET Core|website=docs.microsoft.com|date=10 April 2024 }}</ref> developed by [[Microsoft]] and the community.<ref>{{cite web|last1=singh Satinder|title=Introduction to ASP.NET Core|url=https://docs.microsoft.com/en-us/aspnet/core/|website=microsoft.com|accessdateaccess-date=10 July 2017}}</ref> ItDespite isbeing a modularnew framework, built on a new web stack, it does have a high degree of concept compatibility with ASP.NET. The ASP.NET Core framework supports side-by-side versioning so that runsdifferent applications being developed on a single machine can target different versions of ASP.NET Core. This was not possible with previous versions of ASP.NET. ASP.NET Core initially ran on both the fullWindows-only [[.NET Framework]], on [[Windows]], and the [[cross-platform]] [[.NET Core]]. However, thesupport expectedfor versionthe ASP.NET Core 3Framework was announceddropped tobeginning workwith only on [[ASP.NETNet Core]] dropping support of [[3.NET Framework]]0.<ref>{{Cite web|url=https://docs.microsoft.com/en-us/aspnet/core/|title=Introduction to ASP.NET Core|website=docs.microsoft.com}}</ref>
 
[[Blazor]] is a recent (optional) component to support [[WebAssembly]] and since version 5.0, it has dropped support for some old web browsers. While current [[Microsoft Edge]] works, the [[legacy system|legacy version]] of it, i.e. "[[Microsoft Edge|Microsoft Edge Legacy]]" and [[Internet Explorer 11]] was dropped when you use Blazor.<ref>{{Cite web|title=[Discussion] Updated Blazor browser support for .NET 5 · Issue #26475 · dotnet/aspnetcore|url=https://github.com/dotnet/aspnetcore/issues/26475|access-date=2020-11-11|website=GitHub|language=en}}</ref>
The framework is a complete rewrite that unites the previously separate [[ASP.NET MVC]] and [[ASP.NET Web API]] into a single [[programming model]].
 
Despite being a new framework, built on a new web stack, it does have a high degree of concept compatibility with ASP.NET. '''ASP.NET Core''' applications supports side by side versioning in which different applications, running on the same machine, can target different versions of ASP.NET Core. This is not possible with previous versions of ASP.NET.
 
== Release history ==
Line 43 ⟶ 40:
!Release Date
!End of Support
!Supported Visual Studio Version(s)
!Development Tool
 
|-
|{{Version|o|1.0}}
|2016-06-27
|2019-06-27
|[[Microsoft Visual Studio|Visual Studio2015]] 2015, [[Visual Studio 2017|2017]]
|-
|{{Version|o|1.1}}
|2016-11-18
|2019-06-27
|Visual Studio 2015, 2017
|-
|{{Version|o|2.0}}
|2017-08-14
|2018-10-01
|Visual Studio 2017
|-
|{{Version|o|2.1}} [[Longlong-term support]]
|2018-05-30
|2021-08-21<ref>{{Cite web|url=https://github.com/dotnet/core|title=GitHub - dotnet/core: Home repository forof .NET and .NET Core|date=October 20, 2019|via=GitHub}}</ref>
|Visual Studio 2017
|-
|{{Version|o|2.2}}
|2018-12-04<ref>{{Cite web|url=https://devblogs.microsoft.com/aspnet/asp-net-core-2-2-available-today/|title=ASP.NET Blog &#124; Announcing ASP.NET Core 2.2, available today!|date=December 4, 2018|website=ASP.NET Blog}}</ref>
|2019-12-23<ref name=":0">{{Cite web|url=https://dotnet.microsoft.com/platform/support/policy/dotnet-core|title=.NET Core and .NET 5 official support policy|website=Microsoft|language=en|access-date=2019-12-06}}</ref>
|Visual Studio 2017 15.9 and [[Visual Studio 2019|2019]] 16.0 preview 1
|-
|{{Version|o|3.0}}
|2019-09-23<ref>{{Cite web|url=https://devblogs.microsoft.com/aspnet/asp-net-core-and-blazor-updates-in-net-core-3-0/|title=ASP.NET Blog &#124; ASP.NET Core and Blazor updates in .NET Core 3.0|date=September 23, 2019|website=ASP.NET Blog}}</ref>
|2020-03-03<ref name=":0" />
|Visual Studio 2017 and 2019
|-
|{{Version|o|3.1}} [[long-term support]]
|2019-12-03<ref>{{Cite web|url=https://devblogs.microsoft.com/aspnet/asp-net-core-updates-in-net-core-3-1/|title=ASP.NET Core updates in .NET Core 3.1|date=December 3, 2019|website=ASP.NET Blog}}</ref>
|2022-12-03<ref name=":0" />
|Visual Studio 2019
|-
|{{Version|o|5.0}}
|2020-11-10<ref name="5.0">{{Citation|title=dotnet/aspnetcore|date=2020-11-11|url=https://github.com/dotnet/aspnetcore|publisher=.NET Platform|access-date=2020-11-11}}</ref>
|2022-05-08
|Visual Studio 2019 16.8
|-
|{{Version|o|6.0}} [[long-term support]]
|2021-11-08<ref>{{Cite web|date=2021-11-08|title=Announcing ASP.NET Core in .NET 6|url=https://devblogs.microsoft.com/dotnet/announcing-asp-net-core-in-net-6/|access-date=2021-11-19|website=.NET Blog|language=en-US}}</ref>
|2024-11-08
|Visual Studio 2022
|-
|{{Version|o|7.0}} standard-term support<ref>{{cite web |title=.NET and .NET Core Support Policy |url=https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core |website=Microsoft |access-date=2024-10-02}}</ref>
|2022-11-08<ref>{{Cite web|date=2022-11-08|title=Announcing ASP.NET Core in .NET 7|url=https://devblogs.microsoft.com/dotnet/announcing-asp-net-core-in-dotnet-7/|access-date=2024-10-02|website=.NET Blog|language=en-US}}</ref>
|2024-05-14
|Visual Studio 2022
|-
|{{Version|co|8.0}} long-term support<ref>{{cite web |title=.NET and .NET Core Support Policy |url=https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core |website=Microsoft |access-date=November 19, 2023}}</ref>
|2023-11-14<ref>{{Cite web|date=2022-11-08|title=Announcing ASP.NET Core in .NET 8|url=https://devblogs.microsoft.com/dotnet/announcing-asp-net-core-in-dotnet-8/|access-date=2023-11-19|website=.NET Blog|language=en-US}}</ref>
|2026-11-10
|Visual Studio 2022
|-
|{{Version|c|9.0}} standard-term support<ref>{{cite web |title=.NET and .NET Core Support Policy |url=https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core |website=Microsoft |access-date=November 12, 2024}}</ref>
|2024-11-12<ref>{{Cite web|date=2024-11-12|title=Announcing NET 9|url=https://devblogs.microsoft.com/dotnet/announcing-dotnet-9/|access-date=2024-11-12|website=.NET Blog|language=en-US}}</ref>
|2026-05-12
|Visual Studio 2022
|-
 
| colspan="4" |{{Version|l|show=011100}}
|}
 
== Naming ==
Originally deemed '''ASP.NET vNext''', the framework was going to be called '''ASP.NET 5''' when ready. However, in order to avoid implying it is an update to the existing ASP.NET framework, Microsoft later changed the name to '''ASP.NET Core''' at the 1.0 release.<ref>{{cite web|url=http://blogs.msdn.com/b/webdev/archive/2016/01/19/asp-net-5-is-dead-introducing-asp-net-core-1-0-and-net-core-1-0.aspx|title=ASP.NET 56 is dead - Introducing ASP.NET Core 1.0 and .NET Core 1.0|author=Jeffrey T. Fritz|work=.NET Web Development and Tools Blog|accessdateaccess-date=20 January 2016}}</ref>
 
== Features ==
* No-compile developer experience (i.e. compilation is continuous, so that the developer does not have to invoke the compilation command)
* Modular framework distributed as [[NuGet]] packages
* Cloud-optimized runtime (optimisedoptimized for the internet)
* Host-agnostic via [[Open Web Interface for .NET]] (OWIN) support<ref>{{cite web |title=OWIN |url=http://docs.asp.net/en/latest/fundamentals/owin.html |website=ASP.NET 0.0.1 documentation|date=17 September 2024 }}</ref><ref>{{cite web |title=Roadmap |url=https://github.com/aspnet/AspNetKatana/wiki/Roadmap |website=Github}}</ref> - runs in [[Internet Information Services|IIS]] or standalone
* A unified story for building web UI and web APIs (i.e. both the same)
* A cloud-ready environment-based configuration system
* A light-weightlightweight and modular HTTP request pipeline
* Build and run cross-platform ASP.NET Core apps on Windows, Mac, and Linux
* Open-source and community-focused
* Side-by-side app versioning when targeting .NET Core.
* InbuiltIn-built support for Dependency[[dependency Injectioninjection]]
* Enhanced Security compared to Asp.Net <ref>{{cite web |title=ASP.NET vs ASP.NE CORE |url=https://wirefuture.com/post/aspnet-vs-aspnet-core |website=ASP.NET VS. ASP.NET Core: The Ultimate Showdown|date=17 February 2024 }}</ref>
 
== Components ==
Line 100 ⟶ 131:
* [[SignalR]]
* [[Blazor]]
* [[Kestrel web server]]
 
== See also ==
{{Portal|Free and open-source software}}
* [[.NET Compiler Platform]]
* [[.NET Core]]
* [[Mono (software)|Mono]]
* [[Visual Studio Code]]
Line 111 ⟶ 143:
 
== External links ==
{{Wikibooks|.NET Development Foundation}}
* {{Official website}}
* [https://github.com/aspnet/home ASP.NET Core] on [[GitHub]]
* [https://blogs.msdn.microsoft.com/webdev/2016/06/27/announcing-asp-net-core-1-0/ Announcing ASP.NET Core 1.0]
* Announcing ASP.NET Core [https://blogs.msdn.microsoft.com/webdev/2016/11/16/announcing-asp-net-core-1-1/ 1.1]
* Announcing ASP.NET Core [https://blogs.msdn.microsoft.com/webdev/2017/08/14/announcing-asp-net-core-2-0/ 2.0]
* Announcing ASP.NET Core 2.1 RC [https://blogs.msdn.microsoft.com/dotnet/2018/05/07/announcing-net-core-2-1-rc-1/]
 
{{.NET Framework}}
Line 123 ⟶ 152:
 
[[Category:ASP.NET|VNext]]
[[Category:Web frameworks]]
[[Category:Microsoft free software]]
[[Category:Software using the Apache license]]
[[Category:Web frameworks]]