Is there a Microsoft tool to get the assembly version of a DLL file from a command line?
(I know that I can code my own tool.)
I used the selected answer until I got the following error
Reference assemblies should not be loaded for
execution. They can only be loaded in the Reflection-only loader context.
for several assemblies
using
[System.Reflection.Assembly]::ReflectionOnlyLoadFrom("C:\full\path\to\YourDllName.dll").GetName().Version
should work in those cases (probably all cases)
Adding some sugar to the other powershell-ish answers...
To get extended properties like 'FullName'
$dllPath = "C:\full\path\to\YourDllName.dll";
$ass = [System.Reflection.Assembly]::LoadFrom($dllPath);
$ass.GetName();
$ass
File Version tool will help:
filever /V YourDllName.dll