Skip to content

Posts tagged ‘GUID’


Get Application GUID at Runtime

The following “snippit” (a bit long, but meh) will retrieve your application’s GUID (which can normally be found in the AssemblyInfo file). Great for referencing your application in the event that the name might change or any other time you need to uniquely identify it.

Dim guid As String = New Guid(CType(Me.GetType.Assembly._
GetCustomAttributes(GetType(Runtime.InteropServices. _
GuidAttribute),False)(0), Runtime.InteropServices. _