ProductName, ProductVersion, etc

moongodess

Active member
Joined
Dec 23, 2004
Messages
40
Ive made a dll, wich will be oppened by our main application.
His main form have a about button.

What I an trying to do is get the product name, etc, by using
Application.ProductName...
But i realised that with this ill get the main project properties.
I dont want that :-(

How can I get the dll properties, such as productname, filename (xxx.dll), dll version, etc?????
 
Machaira said:
You could always include a function in the DLL to return this information if theres no way to get it from the outside.

Thats what im trying to do.
Inside the dll im trying to get that values, but instead of dll information, im getting the test project information.
 
Robby said:
moongodess, are refering to the info you put into Assembly.info file?

I dont care if I have to get that information from the assembly or from some other method..
What I want is the correct info..
How do I get the info from the assembly file?
 
System.Reflection.Assembly asm = System.Reflection.Assembly.LoadFrom("bean.dll");

Console.WriteLine(asm.GetName().Fullname);
Console.WriteLine(asm.GetName().Version);
 
Back
Top