Wie bekommt man die Version der gerade ausgeführten Assembly für weitere Zwecke innerhalb der Silverlight-Anwendung?
Ganz einfach:
AssemblyName assemblyName = new AssemblyName(Assembly.GetExecutingAssembly().FullName);
return assemblyName.Version;
Die Version setzt sich dabei aus <Major>.<Minor>.<Build>.<Revision> zusammen.
Laut Microsoft sollten diese Nummern wie im Folgenden verwendet werden:
- A new major or minor part indicates that the new version is incompatible with the old one. For example, version 2.0.0.0 should be incompatible with version 1.1.2.5. You should change major version numbers whenever you introduce an incompatibility into your code.
- A new build part indicates probable compatibility. Typically you should change minor version numbers when you introduce a service pack or a minor upgrade. For example, version 1.8.0.0 is probably compatible with version 1.7.0.0.
- A new revision part indicates a QFE (Quick Fix Engineering) release that is compatible with the previous version and that should be installed. For example, version 1.6.5.13 might be a mandatory bug-fix upgrade to version 1.6.5.12.

