P
Pascal Cloup
Hi,
I could not get the AssemblyVersion attribute. I use the following code:
public static string GetProductVersion()
{
Assembly appAssembly = Assembly.GetExecutingAssembly();
Object[] cma;
cma = appAssembly.GetCustomAttributes( typeof(AssemblyVersionAttribute) ,
true );
return( ((AssemblyVersionAttribute)(cma[0])).InformationalVersion );
}
The same kind of code works with other attributes (AssemblyTitle,
AssemblyProduct,...). Someone can help?
thanks in advance,
Pascal
I could not get the AssemblyVersion attribute. I use the following code:
public static string GetProductVersion()
{
Assembly appAssembly = Assembly.GetExecutingAssembly();
Object[] cma;
cma = appAssembly.GetCustomAttributes( typeof(AssemblyVersionAttribute) ,
true );
return( ((AssemblyVersionAttribute)(cma[0])).InformationalVersion );
}
The same kind of code works with other attributes (AssemblyTitle,
AssemblyProduct,...). Someone can help?
thanks in advance,
Pascal