Referencing the Assembly GUID

  • Thread starter Thread starter Jozef
  • Start date Start date
J

Jozef

Hello,

I apologize for such a newbie question, but I'd like to know if there's any
way to reference the assembly GUID?

Thanks!
 
I apologize for such a newbie question, but I'd like to know if there's any
way to reference the assembly GUID?

What assembly GUID? In .NET v2.0 you can do
yourAssembly.ManifestModule.ModuleVersionId if that's what you're
looking for.


Mattias
 
Hi Mattias,

When you create a new Windows Application project, the Assembly.vb has a
GUID, along with author, company name etc. I'm just wondering how to
reference that elsewhere in the program. DOes the
yourAssembly.ManifestModule.ModuleVersionID do the same thing?
 
When you create a new Windows Application project, the Assembly.vb has a
GUID, along with author, company name etc. I'm just wondering how to
reference that elsewhere in the program.

You can get it with
yourAssembly.GetCustomAttributes(GetType(GuidAttribute)) or
Marshal.GetTypeLibGuidForAssembly(yourAssembly).


Mattias
 
Back
Top