473,396 Members | 1,712 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,396 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
Nov 21 '05 #1
2 1067
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.
Nov 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

Nov 21 '05 #3

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

Similar topics

1
by: angelag | last post by:
I am currently taking a college course in Visual Basic.Net and I am a beginner. I bought Visual Studio.Net 2003 to do my homework at home. I built my first project and e-mailed it to myself at...
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...
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...
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.
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.