Y
Yoavo
Hi,
I need to get the exact AssemblyVersion.
I tried to use something like:
string appName =
System.Reflection.Assembly.GetAssembly(this.GetType()).Location;
System.Reflection.AssemblyName assemblyName =
System.Reflection.AssemblyName.GetAssemblyName(appName);
return assemblyName.Version.ToString();
The problem with this code is that for 2 different versions such as:
"1.0001.0001.0076"
and
"1.1000.0001.0076"
I will get the same result:
"1.1.1.76"
Is it possible to get the "full" version string ?
thanks,
Yoav.
I need to get the exact AssemblyVersion.
I tried to use something like:
string appName =
System.Reflection.Assembly.GetAssembly(this.GetType()).Location;
System.Reflection.AssemblyName assemblyName =
System.Reflection.AssemblyName.GetAssemblyName(appName);
return assemblyName.Version.ToString();
The problem with this code is that for 2 different versions such as:
"1.0001.0001.0076"
and
"1.1000.0001.0076"
I will get the same result:
"1.1.1.76"
Is it possible to get the "full" version string ?
thanks,
Yoav.