[Monodevelop-patches-list] r1954 - trunk/MonoDevelop/Core/src/Main/StartUp
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Sat Sep 18 22:33:17 EDT 2004
Author: tberman
Date: 2004-09-18 22:33:17 -0400 (Sat, 18 Sep 2004)
New Revision: 1954
Modified:
trunk/MonoDevelop/Core/src/Main/StartUp/ChangeLog
trunk/MonoDevelop/Core/src/Main/StartUp/MonoDevelopMain.cs
Log:
stupid little fix
Modified: trunk/MonoDevelop/Core/src/Main/StartUp/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/Main/StartUp/ChangeLog 2004-09-19 02:11:15 UTC (rev 1953)
+++ trunk/MonoDevelop/Core/src/Main/StartUp/ChangeLog 2004-09-19 02:33:17 UTC (rev 1954)
@@ -1,3 +1,8 @@
+2004-09-18 Todd Berman <tberman at off.net>
+
+ * MonoDevelopMain.cs: Check if Build and Revision are not 0, and if
+ so, use them as well when building the version #.
+
2004-08-07 Todd Berman <tberman at off.net>
* AssemblyInfo.cs.in: Use new ASSEMBLY_VERSION variable.
Modified: trunk/MonoDevelop/Core/src/Main/StartUp/MonoDevelopMain.cs
===================================================================
--- trunk/MonoDevelop/Core/src/Main/StartUp/MonoDevelopMain.cs 2004-09-19 02:11:15 UTC (rev 1953)
+++ trunk/MonoDevelop/Core/src/Main/StartUp/MonoDevelopMain.cs 2004-09-19 02:33:17 UTC (rev 1954)
@@ -85,7 +85,11 @@
// File.Delete (socket_filename);
string name = Assembly.GetEntryAssembly ().GetName ().Name;
- string version = Assembly.GetEntryAssembly ().GetName ().Version.Major + + "." + Assembly.GetEntryAssembly ().GetName ().Version.Minor;
+ string version = Assembly.GetEntryAssembly ().GetName ().Version.Major + "." + Assembly.GetEntryAssembly ().GetName ().Version.Minor;
+ if (Assembly.GetEntryAssembly ().GetName ().Version.Build != 0)
+ version += "." + Assembly.GetEntryAssembly ().GetName ().Version.Build;
+ if (Assembly.GetEntryAssembly ().GetName ().Version.Revision != 0)
+ version += "." + Assembly.GetEntryAssembly ().GetName ().Version.Revision;
Gnome.Program program = new Gnome.Program (name, version, Gnome.Modules.UI, remainingArgs);
Gdk.Threads.Init();
More information about the Monodevelop-patches-list
mailing list