[Mono-bugs] [Bug 52490][Wis] New - We report CS0017 (multiple entry points) on dlls
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 23 Dec 2003 13:09:19 -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 bmaurer@users.sf.net.
http://bugzilla.ximian.com/show_bug.cgi?id=52490
--- shadow/52490 2003-12-23 13:09:19.000000000 -0500
+++ shadow/52490.tmp.3374 2003-12-23 13:09:19.000000000 -0500
@@ -0,0 +1,40 @@
+Bug#: 52490
+Product: Mono/Compilers
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: bmaurer@users.sf.net
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: We report CS0017 (multiple entry points) on dlls
+
+Description of Problem:
+We report CS0017 (Program 'output file name' has more than one entry point
+defined: function) even on a library.
+
+class A {
+ public static void Main ()
+ {
+ }
+}
+
+class B {
+ public static void Main ()
+ {
+ }
+}
+
+mcs /target:library <blah.cs> fails with
+t.cs(2) error CS0017: Program `t.dll' has more than one entry point
+defined: `A.Main()'
+t.cs(9) error CS0017: Program `t.dll' has more than one entry point
+defined: `B.Main()'
+Compilation failed: 2 error(s), 0 warnings