[Monodevelop-patches-list] r551 - trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/ReferenceDialog

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Sun Jan 18 16:24:41 EST 2004


Author: tberman
Date: 2004-01-18 16:24:41 -0500 (Sun, 18 Jan 2004)
New Revision: 551

Modified:
   trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/ReferenceDialog/SelectReferenceDialog.cs
Log:
alt box commit, getting this to my laptop, and a bugfix to boot


Modified: trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/ReferenceDialog/SelectReferenceDialog.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/ReferenceDialog/SelectReferenceDialog.cs	2004-01-18 21:05:57 UTC (rev 550)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/ReferenceDialog/SelectReferenceDialog.cs	2004-01-18 21:24:41 UTC (rev 551)
@@ -104,7 +104,14 @@
 			
 			
 			foreach (ProjectReference refInfo in configureProject.ProjectReferences) {
-				refTreeStore.AppendValues (System.IO.Path.GetFileName (refInfo.Reference), refInfo.ReferenceType.ToString (), System.IO.Path.GetFullPath (refInfo.GetReferencedFileName (configureProject)), refInfo);
+				switch (refInfo.ReferenceType) {
+					case ReferenceType.Assembly:
+						refTreeStore.AppendValues (System.IO.Path.GetFileName (refInfo.Reference), refInfo.ReferenceType.ToString (), System.IO.Path.GetFullPath (refInfo.GetReferencedFileName (configureProject)), refInfo);
+						break;
+					case ReferenceType.Gac:
+						refTreeStore.AppendValues (System.IO.Path.GetFileName (refInfo.Reference), refInfo.ReferenceType.ToString (), System.IO.Path.GetFullPath (refInfo.GetReferencedFileName (configureProject)), refInfo);
+						break;
+				}
 			}
 			//InitializeComponent();
 		




More information about the Monodevelop-patches-list mailing list