473,388 Members | 1,326 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,388 software developers and data experts.

How to get DLL details?

Hi
I have to follow closely DLL-versions in different client enviroments.
My goal is to build a web page which shows information of all dll:s in one
page.

So it should:
1. Read through all DLL:s in "bin" directory
2. Print Name, Version number and AssemblyDescription of each dll

Pseudo code would be something like:
foreach(dllFIle in binDirectory)
{
string ver = dllFile.Version
string desc = dllFile.Description
}

So how to get started?
System.IO.File provides access only to file attributes.

Which class provides methods to extract assembly information out of dll?
Nov 19 '05 #1
1 3470

"Jouni Karppinen" <Jo************@discussions.microsoft.com> wrote in
message news:65**********************************@microsof t.com...
Hi
I have to follow closely DLL-versions in different client enviroments.
My goal is to build a web page which shows information of all dll:s in one
page.

So it should:
1. Read through all DLL:s in "bin" directory
2. Print Name, Version number and AssemblyDescription of each dll

Pseudo code would be something like:
foreach(dllFIle in binDirectory)
{
string ver = dllFile.Version
string desc = dllFile.Description
}

So how to get started?
System.IO.File provides access only to file attributes.

Which class provides methods to extract assembly information out of dll?


Dim asm As [Assembly] =
[Assembly].GetAssembly(GetType(InternalMain))

Console.WriteLine("Version: " & asm.GetName().Version.ToString(4))

Dim attributes As Object() = asm.GetCustomAttributes(True)

For Each attribute As Object In attributes
If TypeOf(attribute) Is AssemblyDescriptionAttribute
Console.WriteLine( _
"Description: " & _
DirectCast( _
attribute, _
AssemblyDescriptionAttribute _
).Description _
)
Else
Console.WriteLine("Attribute: " &
attribute.GetType().ToString())
End If
Next
Above is just a sample...cut & paste using a Console application...

Instead of using Assembly.GetAssembly (from System.Reflection), you can use
Assembly.LoadFile.

HTH,

Mythran

Nov 19 '05 #2

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

Similar topics

8
by: sam1967 | last post by:
I know how to build forms with ASP and process user input. Now i want to take credit card payments via a form. i will then download the details and process them via our credit card machine. do...
1
by: Srinivasa Reddy K Ganji | last post by:
I have created a customer registration functionality which stores details of customers like name, address, country in a database. Now I am on to implementing the customer registration details...
3
by: Damian | last post by:
Hi everyone I'm having an issue with one of our applications. I'm getting the following error when attempting to log in to the site: Server Error in 'xxxxxxxxxxxxxxxx' Application....
0
by: hui | last post by:
I am trying to use an SQL Server 2000 to log the events, and have found somehow the contents in the details column get truncated. Details as following: The query I am using to retrieve details:...
1
by: SwatSoftwareDev | last post by:
Hi all, I have Master-Details-Details type of data i. e. every row of details table is attached with multiple rows of third table. What is the best approach (performance wise) to show this kind...
1
by: brian.newman | last post by:
I'm trying to link a gridview to another gridview in a Master-Details architecture. But the Details list isn't filtering like it is suppossed to. It will show all items on page load and it won't...
2
by: chutney | last post by:
Dear all, please excuse the fact that this is not an explicit problem I have, but more of a general query. I have an Access database (2003) with a load of contact details in it. Including various...
4
by: randy.buchholz | last post by:
Been fighting this one for a while, looking for help. I have a simple page with a grid view and details view (just managing a single table). The details view is primarily used for creating new...
0
by: peter.c.bradley | last post by:
Hi folks, I have an Access report that has an unbound text box in the details section. The report also includes the standard headers and footers. The details section is populated by a query...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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
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
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...

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.