Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?)

like image 461
pencilCake Avatar asked Dec 20 '11 10:12

pencilCake


People also ask

What is a runtime version?

A limited version of one program that enables you to run another program. To run a program written in Visual Basic, for example, you need the runtime version of Visual Basic.

What is the difference between .NET SDK and .NET runtime?

The SDK is all of the stuff that is needed/makes developing a . NET Core application easier, such as the CLI and a compiler. The runtime is the "virtual machine" that hosts/runs the application and abstracts all the interaction with the base operating system.

What is .NET version?

NET Framework and the assemblies share the same version number. For example, .NET Framework versions include 4.5, 4.6.1, and 4.7.2. The common language runtime (CLR), which manages and executes your app's code. A single CLR version typically supports multiple .NET Framework versions.

What is latest .NET Framework version?

NET Framework 4.8 was the final version of . NET Framework, future work going into the rewritten and cross-platform . NET Core platform, which shipped as . NET 5 in November 2020.


1 Answers

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.

like image 145
Adam Houldsworth Avatar answered Oct 16 '22 20:10

Adam Houldsworth