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

查看:1850
本文介绍了.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核心指南,.NET Core由以下各项组成

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



  • .NET运行时,它提供类型系统,程序集加载,垃圾收集器,本机互操作和其他基本服务。

  • 一组框架库,提供原始数据类型,应用程序组合类型和基本实用程序。

  • .NET中可用的一组SDK工具和语言编译器,可提供基本的开发人员体验。核心SDK。

  • dotnet应用程序主机,用于启动.NET Core应用程序。它选择运行时并托管运行时,提供程序集加载策略并启动应用程序。相同的主机也以几乎相同的方式用于启动SDK工具。

  • A .NET runtime, which provides a type system, assembly loading, a garbage collector, native interop and other basic services.
  • A set of framework libraries, which provide primitive data types, app composition types and fundamental utilities.
  • A set of SDK tools and language compilers that enable the base developer experience, available in the .NET Core SDK.
  • The 'dotnet' app host, which is used to launch .NET Core apps. It selects the runtime and hosts the runtime, provides an assembly loading policy and launches the app. The same host is also used to launch SDK tools in much the same way.

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天全站免登陆