Programmatically get the version number of a DLL

.net, c#

Solution

Assembly assembly = Assembly.LoadFrom("MyAssembly.dll");
Version ver = assembly.GetName().Version;

Important: It should be noted that this is not the best answer to the original question. Don't forget to read more on this page.

Problem

Is it possible to get the version number programmatically from any .NET DLL? If yes, how?

Original source

Related problems