Random thoughts about everything and nothing

How to retrieve the version number of a referenced assembly

leave a comment »

Them:  Michael, do you remember which version of X we used in framework release x.x.x.x?
Me [as always]: -euh- No…
Them: ?!@#$%#@%”>?@#$%#@%?@#$%#@%

There are multiple solutions to the above scenario. 

First, better document the release notes when releasing a new assembly (mental note ;-)).

Second, use a tool like reflector or ildasm to check the referenced version.

Here’s how…using reflector and a signed entlib version

  1. Open the assembly you want to check in reflector.
  2. Navigate to the dependent assembly in the References node (see figure)
  3. Click on the dependent assembly and retrieve the version number in the detail window

Checking the reference in Reflector

Or, using ildasm

  1. Open the assembly in the idasm toolIdasm - Manifest node
  2. Double-click on the MANIFEST node
  3. Search for the referenced assembly in the MANIFEST window.  The value next to “.ver” is the version number

Ildasm - Checking the version of a reference assembly 

The Installation

  1. Reflector can be found here
  2. Idasm is installed with the .NET framework SDK and/or after installing the Visual Studio environment (when selected).
    The tool itself can be found in the “%programfiles%\Microsoft Visual Studio 8\SDK\v2.0\Bin” directory

Written by Michael

July 24, 2007 at 12:04 pm

Posted in .NET

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: