Search code examples
c#.net.net-assembly

How to check the version of an assembly (dll)?


I have c# application and when I made a change, I am getting the error message:

An unhandled exception of type 'System.TypeLoadException' occurred in WindowsFormsApplication1.exe

Additional information: Could not load type
'TradeIdeas.TIProData.OddsMakerColumnConfiguration' from assembly 'TIProData, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’.

This message says the version number of dll (TIProData) is 1.0.0.0. I think there is a later version available. How can I tell the version number of a dll on my machine?


Solution

  • You can use JetBrains dotPeek (free), Reflector, ILDASM or ILSpy to get the assembly version.

    You usually can find ILDASM in C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools\ildasm.exe (where v8.1A is the version of the Windows SDK installed).

    ILDASM:

    ildasm

    Reflector:

    reflector