Archive

Posts Tagged ‘dll version’

Identifying the version of a reference dll with which a dll was built.

May 28, 2011 2 comments

As a part of BizTalk development, we use many Common DLLs as references in our projects. One frequent issue we face is in knowing the reference DLL details(mainly the version) with which a DLL was built with.

Assume we have a map project “MapProj” which refers to a common DLL “SharedSchemas.dll” which is of version 1.0.5.0 and also there are many versions of “SharedSchemas.dll” that coexists.

After deploying the”MapProj” to a server where it executes, you identify that the maps output was not as expected and you want to ensure if the maps project was built with the expected version of the referenced dll, 1.0.5.0 of “SharedSchemas.dll” in our case. We can use ILDASM.exe, a built-in .NET framework tool which will identify the version details of a referenced assembly.

Step1 : Go to your VisualStudio Command Prompt and type “ILDASM.exe”.

c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>ildasm.exe

Step2 : Open the “MapProj.dll” for which we have to check the references.

ILDASM.exe

Step 3: Double-click on “Manifest”.

ILDASM_Manifest

ILDASM->Manifest

The popup gives you the list of referenced assemblies and their versions.

View AssemblyDetails

View AssemblyDetails

Please provide your feedback and comments.