Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 486
user3229570 Avatar asked Apr 21 '15 12:04

user3229570


People also ask

How do I find my DLL assembly Version?

If you reference the dll in Visual Studio right click it (in ProjectName/References folder) and select "Properties" you have "Version" and "Runtime Version" there. In File Explorer when you right click the dll file and select properties there is a "File Version" and "Product Version" there.

How do I find DLL information?

With most Windows executables (DLL, EXE...), version and other details can be viewed using "Details" tab in "Properties" ( Alt + Enter ).

What is DLL in assembly?

An assembly is a collection of types and resources that are built to work together and form a logical unit of functionality. Assemblies take the form of executable (.exe) or dynamic link library (. dll) files, and are the building blocks of . NET applications.

Where is assembly Version C#?

"Assembly File Version" is what shows when you right-click on a file and go to "properties" then the "details" tab.

How can I tell if a DLL is .NET assembly?

How to manually determine if a file is an assembly. Start the Ildasm.exe (IL Disassembler). Load the file you want to test. If ILDASM reports that the file is not a portable executable (PE) file, then it is not an assembly.

How do I find the PowerShell assembly Version?

You can get file version of file using PowerShell Get-Command cmdlet. In the above command, Get-Command get dll assembly file version of the specified file using FileVersionInfo. FileVersion property.


1 Answers

You can use 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

like image 183
Patrick Hofman Avatar answered Sep 23 '22 10:09

Patrick Hofman