Retrieving Assembly Info "GUID" at Run Time

JaedenRuiner

Well-known member
Joined
Aug 13, 2007
Messages
340
Programming Experience
10+
I have the need to retrieve the GUID that is listed in the "Assembly Info" page of the Project Properties. How can I get this data at run-time?

Thanks

(I've looked in the My.Application.Info, but it isn't in there that I can see)
 
Get the GuidAttribute attribute of the Assembly, example:
VB.NET:
Dim guid As Guid = New Guid(CType(Me.GetType.Assembly.GetCustomAttributes(GetType(GuidAttribute), False)(0), GuidAttribute).Value)
 
Back
Top