views:

58

answers:

1

Does it exist a ms tool to get the assembly version of a dll from a command line ? (I know that I can code my own tool)

+3  A: 

This is an area where PowerShell shines. If you don't already have it, install it. It's preinstalled with Windows 7.

Running this command line:

[System.Reflection.Assembly]::LoadFrom("YourDllName.dll").GetName().Version

outputs this:

Major  Minor  Build  Revision
-----  -----  -----  --------
3      0      8      0

Note that LoadFrom returnes an assembly object, so you can do pretty much anything you like. No need to write a program.

OregonGhost