[Monodevelop-patches-list] r1410 - trunk/MonoDevelop/src/Main/StartUp
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Wed Apr 7 22:12:53 EDT 2004
Author: jluke
Date: 2004-04-07 22:12:53 -0400 (Wed, 07 Apr 2004)
New Revision: 1410
Modified:
trunk/MonoDevelop/src/Main/StartUp/ChangeLog
trunk/MonoDevelop/src/Main/StartUp/MonoDevelopMain.cs
Log:
use reflection for the name and version
Modified: trunk/MonoDevelop/src/Main/StartUp/ChangeLog
===================================================================
--- trunk/MonoDevelop/src/Main/StartUp/ChangeLog 2004-04-07 17:57:36 UTC (rev 1409)
+++ trunk/MonoDevelop/src/Main/StartUp/ChangeLog 2004-04-08 02:12:53 UTC (rev 1410)
@@ -1,3 +1,7 @@
+2004-04-07 John Luke <jluke at cfl.rr.com>
+
+ * MonoDevelopMain.cs: use reflection for the name and version
+
2004-04-02 Todd Berman <tberman at sevenl.net>
* MonoDevelopMain.cs: move SharpDevelopMain.cs... damn i love svn.
Modified: trunk/MonoDevelop/src/Main/StartUp/MonoDevelopMain.cs
===================================================================
--- trunk/MonoDevelop/src/Main/StartUp/MonoDevelopMain.cs 2004-04-07 17:57:36 UTC (rev 1409)
+++ trunk/MonoDevelop/src/Main/StartUp/MonoDevelopMain.cs 2004-04-08 02:12:53 UTC (rev 1410)
@@ -8,6 +8,7 @@
using System;
using System.IO;
using System.Collections;
+using System.Reflection;
using System.Xml;
using System.Threading;
@@ -46,12 +47,15 @@
}
/// <summary>
- /// Starts the core of SharpDevelop.
+ /// Starts the core of MonoDevelop.
/// </summary>
[STAThread()]
public static void Main(string[] args)
{
- Gnome.Program program = new Gnome.Program ("MonoDevelop", "0.3", Gnome.Modules.UI, args);
+ string name = Assembly.GetEntryAssembly ().GetName ().Name;
+ string version = Assembly.GetEntryAssembly ().GetName ().Version.Major + + "." + Assembly.GetEntryAssembly ().GetName ().Version.Minor;
+
+ Gnome.Program program = new Gnome.Program (name, version, Gnome.Modules.UI, args);
Gdk.Threads.Init();
commandLineArgs = args;
bool noLogo = false;
More information about the Monodevelop-patches-list
mailing list