[Mono-bugs] [Bug 53965][Nor] New - codebehind fails with mono-0.30 (w/ quickfix)

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 5 Feb 2004 21:38:56 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by liyul@hotmail.com.

http://bugzilla.ximian.com/show_bug.cgi?id=53965

--- shadow/53965	2004-02-05 21:38:55.000000000 -0500
+++ shadow/53965.tmp.1153	2004-02-05 21:38:55.000000000 -0500
@@ -0,0 +1,53 @@
+Bug#: 53965
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Web
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: liyul@hotmail.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: codebehind fails with mono-0.30 (w/ quickfix)
+
+When there's a class library for the codebehind aspx, the mcs compiling 
+argument would have reference to -r"YourBaseClassName", which will fail to 
+compile. Quick fix is fixing System.Web.UI/TemplateParser.cs
+
+
+		internal virtual void AddAssembly (Assembly assembly, bool 
+fullPath)
+		{
+			if (anames == null)
+				anames = new Hashtable ();
+
+			string name = assembly.GetName ().Name;
+			string loc = assembly.Location;
+// HACK: Always add with fullPath so that compiling reference will be 
+correct.
+// When this class parses base inheritance and call SetBaseType, the 
+assembly
+// couble be added with fullPath set to false(!). Then the built compiling
+// argument will fail to compile.
+//
+//			if (fullPath) {
+				if (!assemblies.Contains (loc)) {
+					assemblies.Add (loc);
+				}
+
+				anames [name] = loc;
+				anames [loc] = assembly;
+//			} else {
+//				if (!assemblies.Contains (name)) {
+//					assemblies.Add (name);
+//				}
+//
+//				anames [name] = assembly;
+//			}
+		}