提取assemblyinfo.cs文件里的guid值
Assembly ass = Assembly.LoadFile(path);
GuidAttribute[] grids = (GuidAttribute[])ass.GetCustomAttributes(typeof(GuidAttribute), false);
if (grids.Length > 0)
{
Guid gudi = new Guid(grids[0].Value);
Debug.WriteLine(gudi);
}
GuidAttribute[] grids = (GuidAttribute[])ass.GetCustomAttributes(typeof(GuidAttribute), false);
if (grids.Length > 0)
{
Guid gudi = new Guid(grids[0].Value);
Debug.WriteLine(gudi);
}