I'm trying to determine the version number of my Silverlight application. Currently I am using:
string name = Assembly.GetExecutingAssembly().FullName;
AssemblyName asmName = new AssemblyName(name);
// http://www.dotnet247.com/247reference/msgs/45/225355.aspx
string versionNo = "Version: " + asmName.Version.Major + "." + asmName.Version.Minor + "." + asmName.Version.Build + "." + asmName.Version.Revision;
However, four successive builds of my app gives me:
1.0.0.14310
1.0.0.14343
1.0.0.14382
1.0.0.14425
This isn't the end of the world as they are sequential, but I'd like to know how this is being derived. Is the 'current' revision number stored in the project anywhere or will building on another machine break the sequence? It would be great if somebody can point me to some background reading (which isn't MSDN!).