ASP.NET Core: Difference between revisions

Content deleted Content added
Tapeshm (talk | contribs)
No edit summary
Tags: Reverted references removed
Line 1:
{{Short description|Open-sourceچارچوب webنرم‌افزاری applicationبرنامه‌نویسی frameworkوب منبع‌باز}}
{{Infobox software
| name = ASP.NET Core
| logo = <!-- Imageنام nameتصویر isکافی enoughاست. -->
| logo alt =
| logo caption =
| screenshot = <!-- Imageنام nameتصویر isکافی enoughاست. -->
| screenshot alt =
| caption =
| collapsible = <!-- Anyهر textمتنی hereکه willدر collapseاینجا theقرار screenshotداده شود، تصویر را جمع می‌کند. -->
| author = [[Microsoft]]
| developer = [[.NET Foundation]] andو theجامعه open source communityمنبع‌باز
| released = {{Start date and age|2016|06|07}}
| discontinued = <!-- Setyes toبگذارید yesاگر نرم‌افزار متوقف شده است، ifدر softwareغیر isاین discontinued,صورت otherwiseحذف omitکنید. -->
| ver layout = <!-- simple (defaultپیش‌فرض) orیا stacked -->
| latest release version = v8.0.0
| latest release date = {{Start date and age|2023|11|14|df=yes}}<ref>{{Cite web|date=2023-11-14|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>
Line 20:
| operating system = [[Microsoft Windows|Windows]], [[macOS]], [[Linux]]
| platform = [[Cross-platform]]
| size =
| language =
| language count = <!-- Number only -->
| language footnote =
| genre = [[Web framework]]
| license = [[MIT License]]<ref name="GHlicense">{{cite web|url=https://github.com/aspnet/AspNetCore/blob/master/LICENSE.txt| title= ASP.NET Core license|website=[[GitHub]] |access-date=2021-09-29}}</ref>
| alexa =
| website = {{URL|https://dotnet.microsoft.com/apps/aspnet}}
| standard =
| AsOf =
}}
'''ASP.NET Core''' is an open-source modular web-application framework. It is a redesign of [[ASP.NET]] that unites the previously 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}}</ref><ref>{{cite web|last1=singh Satinder|title=Introduction to ASP.NET Core|url=https://docs.microsoft.com/en-us/aspnet/core/|website=microsoft.com|access-date=10 July 2017}}</ref> Despite being a new 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 different 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 Windows-only [[.NET Framework]] and the [[cross-platform]] [[.NET]]. However, support for the .NET Framework was dropped beginning with ASP.Net Core 3.0.<ref>{{Cite web|url=https://docs.microsoft.com/en-us/aspnet/core/|title=Introduction to ASP.NET Core|website=docs.microsoft.com}}</ref>
 
'''ASP.NET Core''' یک چارچوب نرم‌افزاری برنامه‌نویسی وب منبع‌باز و ماژولار است. این چارچوب بازطراحی شده است و [[ASP.NET MVC]] و [[ASP.NET Web API]] را که قبلاً جدا بودند، به یک مدل برنامه‌نویسی تلفیق کرده است.<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}}</ref><ref>{{cite web|last1=singh Satinder|title=Introduction to ASP.NET Core|url=https://docs.microsoft.com/en-us/aspnet/core/|website=microsoft.com|access-date=10 July 2017}}</ref> این چارچوب از هم‌سواری نسخه‌های مختلف پشتیبانی می‌کند به‌طوری‌که برنامه‌های مختلفی که در یک سیستم توسعه می‌یابند، می‌توانند به نسخه‌های مختلفی از ASP.NET Core متصل شوند. این امکان در نسخه‌های قبلی ASP.NET وجود نداشت.<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>
 
[[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>
== Release history ==
 
== تاریخچه انتشار ==
{| class="wikitable"
!شماره نسخه
!Version Number
!تاریخ انتشار
!Release Date
!پایان پشتیبانی
!End of Support
!Supported Visual Studio Version(s)
 
|-
Line 101 ⟶ 95:
|}
 
== Namingنام‌گذاری ==
Originallyاصلاح deemedاسم '''ASP.NET vNext''',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 6 is dead - Introducing ASP.NET Core 1.0 and .NET Core 1.0|author=Jeffrey T. Fritz|work=.NET Web Development and Tools Blog|access-date=20 January 2016}}</ref>
 
== ویژگی‌ها ==
 
تجربه توسعه‌دهنده بدون نیاز به کامپایل (یعنی کامپایل به‌صورت مداوم انجام می‌شود، بنابراین توسعه‌دهنده نیازی به فراخوانی دستور کامپایل ندارد)
== Features ==
چارچوب ماژولار توزیع‌شده به‌صورت بسته‌های NuGet
* 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
بدون وابستگی به میزبان از طریق پشتیبانی Open Web Interface for .NET (OWIN) - اجرا در IIS یا مستقل
* Cloud-optimized runtime (optimized for the internet)
داستان یکپارچه برای ساخت رابط کاربری و APIهای وب
* 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}}</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)
خط لوله درخواست HTTP سبک و ماژولار
* A cloud-ready environment-based configuration system
ساخت و اجرای برنامه‌های ASP.NET Core چندسکویی بر روی ویندوز، مک و لینوکس
* A lightweight and modular HTTP request pipeline
منبع‌باز و تمرکز بر جامعه
* Build and run cross-platform ASP.NET Core apps on Windows, Mac, and Linux
پشتیبانی از نسخه‌های مختلف برنامه همزمان هنگام هدف‌گیری به .NET
* Open-source and community-focused
پشتیبانی داخلی از تزریق وابستگی
* Side-by-side app versioning when targeting .NET
*امنیت 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}}</ref>
* In-built support for [[dependency injection]]
* 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}}</ref>
 
== Componentsاجزا ==
* [[Entity Framework|Entity Framework (EF) Core]]
* Identity Core
Line 127 ⟶ 122:
* [[Kestrel web server]]
 
== جستار های وابسته ==
== See also ==
{{Portal|Free and open-source software}}
* [[.NET Compiler Platform]]
Line 133 ⟶ 128:
* [[Visual Studio Code]]
 
== References منابع==
{{Reflist}}
 
== Externalپیوند linksهای خارجی ==
{{Wikibooks|.NET Development Foundation}}
* {{Official website}}