.NET核心利益-并排执行需要明确 [英] .Net core benefit - side by side execution need clarity

查看:46
本文介绍了.NET核心利益-并排执行需要明确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Microsoft 电子书中提到.net核心的好处是您可以在同一台计算机上为应用程序并排运行.NET版本,我的困惑甚至在.net框架中也一样功能在指向不同.net框架版本的应用程序可以在同一台计算机上一起运行的地方可用.

那么.net核心的额外好处是什么,还是我错过了一些东西?

解决方案

经典的.NET Framework只能并行运行CLR 2(2.0-3.5)和CLR 4(4.0+)版本.

如果在计算机上安装.NET Framework 4.7.1(或升级到带有该版本的Windows版本),则所有为4.0+构建的应用程序都将在该框架上运行.

.NET Core可以并行运行所有版本.例如2.0.3和2.0.4将安装在单独的目录中.但是,由于它们包含安全性和错误修复,因此它会自动前滚到补丁程序发行版.但是,如果您为2.0.4编译并且同时安装了2.1.0和2.0.4,它将不会在2.1.0上自动运行您的应用程序.

it is mentioned in microsoft ebook that one of the benefit of .net core is you can run side by side .NET versions for applications within the same machine, my confusion here is even in .net framework same feature was available where application pointing different .net framework versions can run together in same machine.

So how it is an extra benefit of .net core, or am i missing some thing?

解决方案

The classic .NET Framework could only run the CLR 2 (2.0-3.5) and CLR 4 (4.0+) versions side-by-side.

If you install .NET Framework 4.7.1 on a machine (or upgrade to a windows version carrying that version), all applications built for 4.0+ will run on that framework.

.NET Core can run all versions side-by-side. e.g. 2.0.3 and 2.0.4 will be installed into separate directories. However, it automatically rolls forward to patch releases, since they contain security and bug fixes. But it will not automatically run your app on 2.1.0 if you compiled for 2.0.4 and both 2.1.0 and 2.0.4 are installed.

这篇关于.NET核心利益-并排执行需要明确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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