Search code examples
.net.net-core.net-framework-version

.Net core benefit - side by side execution need clarity


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?


Solution

  • 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.