|
I run the TaskVision client on a PC with only .NET framework 1.1 installed, which seems to work fine. When I opened the About dialog, I was surprised to see that the versions of the System assemblies should be 1.0.3300.0 (which would be .NET framework 1.0). I don't have these assemblies on my PC!
I double-checked this with ProcessExplorer (http://www.sysinternals.com/ntw2k/freeware/procexp.shtml), which proved that the System assemblies of .NET framework 1.1 were loaded instead as expected.
Looking at the C# source code, I saw the following: // display components used by this assembly AssemblyName[] assemComponents = Assembly.GetExecutingAssembly().GetReferencedAssemblies(); foreach (AssemblyName assemName in assemComponents) { ListViewItem item = listComponents.Items.Add(assemName.Name); item.SubItems.Add(assemName.Version.ToString()); }
I.e. the About dialog just displays the versions of the referenced assemblies, which is not necessarily what is actually loaded at run-time. So I think this is quite a crappy example how to display version information!
If you look for something better, you might check how this is done in NDoc (http://ndoc.sourceforge.net). |