1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
/// <summary>
/// Determines the GUID of the current assembly
/// </summary>
/// <returns>GUID as string</returns>
private string GetAssemblyGUID()
{
string id = "";
foreach (object attr in Assembly.GetExecutingAssembly().GetCustomAttributes(true))
{
if (attr is GuidAttribute)
id = ((GuidAttribute)attr).Value;
}
return id;
}
|