moongodess Posted July 1, 2005 Posted July 1, 2005 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????? Quote
Machaira Posted July 1, 2005 Posted July 1, 2005 You could always include a function in the DLL to return this information if there's no way to get it from the outside. Quote Here's what I'm up to.
Moderators Robby Posted July 1, 2005 Moderators Posted July 1, 2005 moongodess, are refering to the info you put into Assembly.info file? Quote Visit...Bassic Software
moongodess Posted July 4, 2005 Author Posted July 4, 2005 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. Quote
moongodess Posted July 4, 2005 Author Posted July 4, 2005 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? Quote
Diesel Posted July 4, 2005 Posted July 4, 2005 System.Reflection.Assembly asm = System.Reflection.Assembly.LoadFrom("bean.dll"); Console.WriteLine(asm.GetName().Fullname); Console.WriteLine(asm.GetName().Version); Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.