Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I've 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 i'll get the main project properties.

I don't want that :-(

 

How can I get the dll properties, such as productname, filename (xxx.dll), dll version, etc?????

Posted
You could always include a function in the DLL to return this information if there's no way to get it from the outside.

 

That's what i'm trying to do.

Inside the dll i'm trying to get that values, but instead of dll information, i'm getting the test project information.

Posted
moongodess' date=' are refering to the info you put into Assembly.info file?[/quote']

 

I don't 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?

Posted

System.Reflection.Assembly asm = System.Reflection.Assembly.LoadFrom("bean.dll");

 

Console.WriteLine(asm.GetName().Fullname);

Console.WriteLine(asm.GetName().Version);

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...