You need to get the AssemblyName object for the assembly. For example, for
the currently executing assembly use:
Version assemblyVersion = Assembly.GetExecutingAssembly().GetName().Version;
To print out the version of every assembly referenced by the main assembly
of you app to this:
foreach(AssemblyName assemblyName in
Assembly.GetEntryAssembly().GetReferencedAssemblie s())
{
// Print out the name and version of the assemblies
Console.WriteLine(assemblyName.Name + "\t" + assemblyName.Version);
}
Hope this helps.
Brian Delahunty
Ireland
http://briandela.com/blog
"Robbie from Philippines" wrote:
how do i read the assembly version (not the file version) of ? tnx..