.NET Core与ASP.NET Core [英] .NET Core vs ASP.NET Core

查看:98
本文介绍了.NET Core与ASP.NET Core的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

.NET Core和ASP.NET Core到底有什么区别?

What exactly is the difference between .NET Core and ASP.NET Core?

它们是互斥的吗?我听说ASP.NET Core建立在.NET Core上,但也可以建立在完整的.NET框架上。

Are they mutually exclusive? I heard ASP.NET Core is built on .NET Core, but it can also be built on the full .NET framework.

那么ASP.NET Core到底是什么?

So what exactly is ASP.NET Core?

推荐答案

更新2020 :请注意,ASP.NET Core 3和更高版本现在依赖于.NET核心,不能再在.NET Framework上使用。下面的描述适用于ASP.NET Core 1.x-2.x;层分隔对于ASP.NET Core 3.0仍然适用,但是ASP.NET Core层不能再在3.0+中的.NET Framework之上使用。

Update 2020: Do note that ASP.NET Core 3 and higher now depend on .NET Core and can no longer be used on .NET Framework. The below description is for ASP.NET Core 1.x-2.x; the layer separation still holds true for ASP.NET Core 3.0 but the ASP.NET Core layer can no longer be used on top of .NET Framework in 3.0+.

。 NET Core是一个运行时。

.NET Core is a runtime. It can execute applications that are built for it.

ASP.NET Core是库的集合,这些库形成了用于构建Web应用程序的框架。
ASP.NET Core库可以在.NET Core和 Full .NET Framework(Windows附带很多年)上使用。

ASP.NET Core is a collection of libraries that form a Framework for building web applications. ASP.NET Core libraries can be used on both .NET Core and the "Full .NET Framework" (which has shipped with windows for many years).

令人困惑的部分是,使用ASP.NET Core库和工具的应用程序通常称为 ASP.NET Core应用程序,从理论上讲它并没有说明它是为.NET Core还是.NET Framework构建的。因此, ASP.NET Core应用程序也也是。NET Core应用程序或 .NET Framework应用程序。

The confusing part is that an application using the libraries and tools of ASP.NET Core is usually referred to as "ASP.NET Core Application", which in theory doesn't say if it is built for .NET Core or .NET Framework. So an "ASP.NET Core Application" is also a ".NET Core Application" or a ".NET Framework Application".

此该图显示了所涉及技术的关系(摘自

This image shows the relation of the involved technologies (taken from this blog post)

在这里您可以看到ASP.NET Core是在.NET Framework和.NET的顶部构建的核心,而 ASP.NET(现在通常称为经典ASP.NET)仅是.NET Framework。

Here you can see that ASP.NET Core is built "on top of" both .NET Framework and .NET Core, while "ASP.NET" (now often referred to as "classic ASP.NET") is .NET Framework only.

这篇关于.NET Core与ASP.NET Core的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆