Search code examples
.net.net-framework-version

How an Web App targeting .Net v45 is able to run in a machine which has .netv40 installed only?


Command clrver

I have an Web App targeting 4.5 but when I have hit clrver command I could see only 2.0 and 4.0 installed on my machine.My Question how .net runs this web app locally ?


Solution

  • Your Web App targeting .NET Framework 4.5 which uses CLR 4.0.

    In the article ".NET Framework versions and dependences" you can get more information about correlation between .NET Framework version and CLR version.

    The .NET Framework version number is incremented at each release, although the CLR version is not always incremented. For example, the .NET Framework 4, 4.5, and later releases include CLR 4, but the .NET Framework 2.0, 3.0, and 3.5 include CLR 2.0. (There was no version 3 of the CLR.)