How does the .NET kernel work in multiple environments?

How does a .NET server manage to run the same DLL on multiple operating systems?

Now I want to install .NET core in the environment where you want to run the application.

But I do not quite understand the work that the .NET kernel actually does under the hood.

Will he compile the native one before the first run or will he interpret each command and execute each command in the base system?

+4
source share
2 answers

.Net- - JIT. DLL -. .Net-, .Net Core. - - JIT, . [ , NGEN, bytecode → ]. .Net = > .Net .

JIT () (.. , ..) . , , "" .. , [ , Microsoft JIT - ].

: https://en.wikipedia.org/wiki/Common_Intermediate_Language#Just-in-time_compilation https://www.telerik.com/blogs/understanding-net-just-in-time-compilation http://tirania.org/blog/archive/2012/Apr-04.html

+3

.net, :

  • Core Clr
  • Core Cli
  • CoreFx

CoreFx BCL, # , . CoreFX #if 100% . .NET Core (CLI) - - .NET Core Clr - .net, ++. #if 95% . - Core-Clr, Core-Clr Linux Windows Versions 5% - , , , .net Linux Mac, . , .

0
source

Source: https://habr.com/ru/post/1689057/


All Articles