[Mono-bugs] [Bug 74955][Nor] New - [PATCH] Class specified using
/main option should be considered fully qualified
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sun May 15 03:34:39 EDT 2005
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 gert.driesen at pandora.be.
http://bugzilla.ximian.com/show_bug.cgi?id=74955
--- shadow/74955 2005-05-15 03:34:39.000000000 -0400
+++ shadow/74955.tmp.27742 2005-05-15 03:34:39.000000000 -0400
@@ -0,0 +1,49 @@
+Bug#: 74955
+Product: Mono: Compilers
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Basic
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: gert.driesen at pandora.be
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: [PATCH] Class specified using /main option should be considered fully qualified
+
+The class that is specified using the /main option of mbas should always
+be considered to be fully qualified.
+
+Right now, mbas combines the rootnamespace and the specified class to
+obtain the fully qualified class name.
+
+This does not match the behaviour of vbc. From the .NET SDK:
+
+"A full qualification to the Sub Main procedure to be called when the
+program starts."
+
+The attached patch files this issue.
+
+To reproduce, compile the following code snippet:
+
+Public Class MyForm
+ Inherits System.Windows.Forms.Form
+End Class
+
+using:
+
+mbas /target:winexe /main:MBasTest.MyForm /rootnamespace:MBasTest /r:Syste
+m.dll /r:System.Windows.Forms.dll MyForm.vb
+
+Actual result:
+
+error BC30737: Program xxx/MyForm.exe does not have an entry point defined
+
+Expected result:
+
+Compilation succeeds
More information about the mono-bugs
mailing list