Simply speaking, when clrver tells that
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC>clrver
Microsoft (R) .NET CLR Version Tool Version 4.0.30319.17929
Copyright (c) Microsoft Corporation. All rights reserved.
Versions installed on the machine:
v2.0.50727
v4.0.30319
It actually means
- You have .NET 2/3/3.5 installed on this machine
- You have .NET 4 or 4.5 installed on this machine
The output is only related to the .NET Frameworks installed on your machine, and does not depend on which version of Visual Studio you use.
CLR v2.0.50727 is shared by .NET 2.0/3.0/3.5, while CLR v4.0.30319 is shared by .NET 4.0 and 4.5. Please try to treat .NET Framework and CLR as separate concepts. I know it is hard for beginners to distinguise them from each other.
Note that it is v2.0.50727
, not 2.0.5
mate, as 2.0.50727
is an atomic concept. This also applies to v4.030319
.
Your intepretation of the MSDN article is incorrect. To avoid further misunderstanding, you might read more about CLR from books such as CLR via C# and so on.