What is the difference between Version and 'Runtime Version' in .Net?

pencilCake picture pencilCake · Dec 20, 2011 · Viewed 17.2k times · Source

When I open the properties window of one of the referenced dlls in my project in Visual Studio I see a Version and also a runtime version .

Actually it is Rhino.Mocks library I am checking. And I see

  • Runtime Version : v2.0.50727
  • Version : 3.6.0.0

What is the difference? (Does it mean I am not able to use 3.6.0.0 of the Rhino Mocks?)

Answer

Adam Houldsworth picture Adam Houldsworth · Dec 20, 2011

Runtime is the version of the CLR (or .NET framework) the DLL needs (usually as a minimum), version is the DLL's version.

So long as you have the minimum runtime installed, it should be usable. However as a general rule it is usually best to select the latest version of the library for the latest runtime support etc.