How can I programmatically obtain the name of the assembly that the code is executing in ?

Platform: WinForms| Category: Deployment

The following code snippet demonstrates how you can obtain the name of the assembly that the code is executing in:

[C#]
MessageBox.Show(System.Reflection.Assembly.GetEntryAssembly().GetName().Name);

[VB.NET]
MessageBox.Show(System.Reflection.Assembly.GetEnTryAssembly().GetName().Name)

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.