[Mono-bugs] [Bug 60124][Nor] New - Assemblies built using mcs target the .NET 1.0 CLR

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 13 Jun 2004 14:50:37 -0400 (EDT)


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@pandora.be.

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

--- shadow/60124	2004-06-13 14:50:37.000000000 -0400
+++ shadow/60124.tmp.5652	2004-06-13 14:50:37.000000000 -0400
@@ -0,0 +1,55 @@
+Bug#: 60124
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gert.driesen@pandora.be               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Assemblies built using mcs target the .NET 1.0 CLR
+
+Apparently, assemblies that are built using mcs target the MS.NET 1.0 
+runtime by default.
+
+Build an assembly with the following code using mcs :
+
+using System;
+
+public class EntryPoint
+{
+        public static void Main ()
+        {
+                Console.WriteLine(Environment.Version.ToString ());
+        }
+}
+
+when you run that assembly on Mono you get :
+
+1.1.4322.573
+
+(which is fine)
+
+when you run that same assembly on a Windows system with both .NET 1.0 
+and .NET 1.1 installed you get :
+
+1.0.3705.288
+
+(which is the version number of the .NET 1.0 runtime)
+
+rebuilding that same code using csc, and running it again on Windows 
+results in :
+
+1.1.4322.573
+
+(as expected)
+
+Assemblies built using mcs (with the 1.0 profile) should target .NET 1.1 
+by default.