What's the difference between SDK and Runtime

2020-05-16 12:31发布

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.

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.

9条回答
Animai°情兽
2楼-- · 2020-05-16 12:57

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.

查看更多
混吃等死
3楼-- · 2020-05-16 12:59

Runtime: to run apps

SDK (Runtime + Tooling): to build and run apps

查看更多
Explosion°爆炸
4楼-- · 2020-05-16 13:01

I'm not inventing anything here. Just copy-pasting the definitions from https://www.microsoft.com/net/download

enter image description here

The software development kit (SDK) includes everything you need to build and run .NET Core applications, using command line tools and any editor (including Visual Studio).

The runtime includes just the resources required to run existing .NET Core applications. The runtime is included in the SDK.

查看更多
登录 后发表回答