473,378 Members | 1,462 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

How to know the Version of a DLL used in the application?

Hi,

Does anyone knows how to determine the version o a dll used in a
application?

I have an application that uses a dll from another company, but
unfortunately that dll is sometimes more than one a a pc, and I want to knwo
which one (which directory) it is using, and which version. It's the
application itself that has to determine this (and write it to a database).

Thanks a lot in advance,

Pieter
Jul 21 '05 #1
2 1832
Does anyone knows how to determine the version o a dll used in a
application?


If it's a managed assembly you're loading, you can check
System.Reflection.Assembly.GetName().Version

For native DLLs you can use the FileVersionInfo class.

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Jul 21 '05 #2
If all are .NET, open the application assembly using ILDASM and browse its
manifest

"DraguVaso" <pi**********@hotmail.com> wrote in message
news:OE*************@tk2msftngp13.phx.gbl...
Hi,

Does anyone knows how to determine the version o a dll used in a
application?

I have an application that uses a dll from another company, but
unfortunately that dll is sometimes more than one a a pc, and I want to knwo which one (which directory) it is using, and which version. It's the
application itself that has to determine this (and write it to a database).
Thanks a lot in advance,

Pieter

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ravi Tallury | last post by:
Hi We are having issues with our application, certain portions of it stop responding while the rest of the application is fine. I am attaching the Java Core dump. If someone can let me know what...
2
by: Terence Shek | last post by:
Is there a way to set the application binding policy so that it always binds to the latest version of an assembly? I'm hoping there is a way to avoid updating the application's binding...
1
by: Gilles Cadorel | last post by:
On a PC, we've got 2 different releases of Oracle Client installed. We have softwares that don't ask during the install wich release of Oracle must be used. When we launch these softwares, how can...
4
by: xenophon | last post by:
I have a class that is used in an ASP.NET app, a WinForms app, and a Win32 Service. What is the best way to tell what environment the code is currently instanced in? Thanks.
2
by: DraguVaso | last post by:
Hi, Does anyone knows how to determine the version o a dll used in a application? I have an application that uses a dll from another company, but unfortunately that dll is sometimes more than...
1
by: Andrew | last post by:
In ASP.NET 1.1 I used to retreive the version of my code-behind assembly using following syntax: Assembly.GetExecutingAssembly().GetName().Version The version was defined in AssemblyInfo.cs using...
3
by: C Card | last post by:
I am creating a managed DLL in C++ using VS.NET 2005 and .NET 2.0 that I hope can be used by applications created for older versions of .NET. I have a feeling this is not possible, and I hope...
4
by: Miro | last post by:
Sorry for all the posts today. Just not been a good day. I cant seem to figure out version numbering. I click on the MyProject and set up the Major, Minor, MajorRevision, MinorRevision as ...
14
by: Phil | last post by:
I have been using this code to display the version number, and this has worked well, but I am now changing from using the ClickOnce publishing to a proper setup project, and this no longer works. ...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.