-------------------------------------------
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Cnm;
using System.Runtime.InteropServices;
using System.Reflection;
namespace getAsse
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
string file = Application.StartupPath + "\\Cnm.dll";
string version = System.Reflection.Assembly.LoadFrom(file).GetType().GUID.ToString();
Guid ownGUID = new Guid(((GuidAttribute)Attribute.GetCustomAttribute(Assembly.LoadFile(file), typeof(GuidAttribute))).Value);
this.textBox1.Text = ownGUID.ToString();
this.label1.Text = version;
}
}
}
------------------------------------