3 ms·
> (.NET Framework 3.x and .NET Framework 4.x are still essentially CLR 2) Not quite. There is a grand total of three different major versions of the VM on Win
by int_19h 8y ago
> (.NET Framework 3.x and .NET Framework 4.x are still essentially CLR 2)
Not quite. There is a grand total of three different major versions of the VM on Windows:
CLR 1.0 - used by .NET Framework 1.0 and 1.1
CLR 2.0 - used by .NET Framework 2.0, 3.0 and 3.5
CLR 4.0 - used by .NET Framework 4+
These can all be installed side-by-side, and any particular .NET application is bound to a particular CLR version.
The differences between 4.0 and 2.0 are far more minor than the ones between 2.0 and 1.0. 2.0 added a bunch of changes visible on IL level - most notably, generics, and all the new IL opcodes and metadata to support them. 4.0 was mostly internal improvements - better JIT, GC etc. But there were also some new features, like NoPIA and "uncatchable" exception types (StackOverflowException etc), and a new CLR hosting API that allowed it to be hosted side-by-side with old frameworks in a native app.