473,503 Members | 1,674 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Retrieve version of another assembly

Hi,

How can I retrieve the file version of another file outside my current
assembly?

Thank you!
Marty
Nov 17 '05 #1
3 1412
Hi,

Do you mean assembly version?

Don;t know of a way to externally do this, you can load the assembly and
using Assembly.GetName().Version to get it, the problem is that now you have
loaded the assembly.

maybe a workaround would be to load it in another appdomain and unload it
when done.
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Marty" <xm******@hotmail.com> wrote in message
news:ef5af.96229$Io.49431@clgrps13...
Hi,

How can I retrieve the file version of another file outside my current
assembly?

Thank you!
Marty

Nov 17 '05 #2
Something like the following will give you the file version:

FileVersionInfo info =
FileVersionInfo.GetVersionInfo(@"C:\WINDOWS\system 32\notepad.exe");
Console.WriteLine("File version:{0}", info.FileVersion);
Console.Read();

-Nick Parker

Nov 17 '05 #3
Thank you guys for your fast reply.

Nick: This is what I was looking for, thanks.

Have a nice day!
Marty

Marty wrote:
Hi,

How can I retrieve the file version of another file outside my current
assembly?

Thank you!
Marty

Nov 17 '05 #4

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

Similar topics

2
8759
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
371
by: Reetu | last post by:
Hi All, I am trying to get the version of the assembly which resides on the web server. Right now I gotto know how to get the version of the assembly present on my physical directory : ...
1
3060
by: Eddy Fuchs | last post by:
Hi folks, I'm searching on this issue since a couple of days: How do I programmatically retrieve the version of an installed program? Is there a possibility to retrieve it via the local MSI...
1
2053
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...
7
7796
by: Sky | last post by:
I have been looking for a more powerful version of GetType(string) that will find the Type no matter what, and will work even if only supplied "{TypeName}", not the full "{TypeName},{AssemblyName}"...
5
12081
by: Laurence | last post by:
In VS.2005 using VB.NET There are two versions on every project, The Assembly Version and the File Version. Why are there two different versions? As far as I can tell, there is not need for...
2
3813
by: Steve Barnett | last post by:
I'm trying to put together a class that retrieves version information from my assembly and am having a problem. The code below happily retrieves the AssemblyTitle and AssemblyDescription but fails...
5
9433
by: =?Utf-8?B?QXhlbCBEYWhtZW4=?= | last post by:
Hi, I've created a class library assembly containing several string resource files, like: - TableColumns.resx - TableColumns.de.resx - General.resx - General.de.resx
7
2663
by: =?Utf-8?B?UVNJRGV2ZWxvcGVy?= | last post by:
I have a C# logging assembly with a static constructor and methods that is called from another C# Assembly that is used as a COM interface for a VB6 Application. Ideally I need to build a file...
0
7273
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7322
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6982
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
7451
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
5572
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,...
0
4667
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3150
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1501
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.