.NET Core 中的 SDK 和 Runtime 有什么区别? [英] What's the difference between SDK and Runtime in .NET Core?

查看:75
本文介绍了.NET Core 中的 SDK 和 Runtime 有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读过很多文章,包括这个,但我仍然无法弄清楚有什么区别,他们既没有简单地解释也没有解释.

I've read many articles, including this one, yet I can't still figure out what's the difference, and they have not explained it either in simple terms or at all.

有人可以澄清一下 .NET SDK 和 .NET Runtime 之间的区别吗?

Can someone please clarify what's the difference between .NET SDK and .NET Runtime?

更新:使用比较将不胜感激.简单英语的类比很有教育意义.

Update: Using comparisons would be very appreciated. Analogy alongside simple English is highly educational.

推荐答案

根据 .Net Core 指南,.NET Core 由以下几项组成

According to the .Net Core Guide, .NET Core is composed of the following items

  • .NET 运行时,提供类型系统、程序集加载、垃圾收集器、本机互操作和其他基本服务.
  • 一组框架库,提供原始数据类型、应用组合类型和基本实用程序.
  • 一组 SDK 工具和语言编译器,可在 .NET Core SDK 中提供基本的开发者体验.
  • dotnet"应用主机,用于启动 .NET Core 应用.它选择运行时并托管运行时,提供程序集加载策略并启动应用程序.同样的主机也用于以几乎相同的方式启动 SDK 工具.

SDK 是所有需要/使开发 .NET Core 应用程序更容易的东西,例如 CLI 和编译器.

The SDK is all of the stuff that is needed/makes developing a .NET Core application easier, such as the CLI and a compiler.

运行时是托管/运行应用程序并抽象出与基本操作系统的所有交互的虚拟机".

The runtime is the "virtual machine" that hosts/runs the application and abstracts all the interaction with the base operating system.

运行应用只需要后者,开发应用需要前者.

Only the latter is required to run the application, but the former is needed to develop the application.

这篇关于.NET Core 中的 SDK 和 Runtime 有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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