Hi
We can use the reflection to get the current running assembly and get its
version
================================================== ====================
// Version information for an assembly consists of the following four
values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
[assembly: AssemblyVersion("1.2.3.4")]
================================================== ====================
private void button1_Click(object sender, EventArgs e)
{
string v =
Assembly.GetExecutingAssembly().GetName().Version. ToString();
MessageBox.Show(v);
}
Best regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.