[Mono-bugs] [Bug 646075] New: <supportedRuntime> does not treat "v4.0" as v4.0.xxxxx

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Oct 13 06:15:53 EDT 2010



           Summary: <supportedRuntime> does not treat "v4.0" as v4.0.xxxxx
    Classification: Mono
           Product: Mono: Runtime
           Version: SVN
          Platform: x86
        OS/Version: Windows 7
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: aenomoto at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

Created an attachment (id=394645)
 --> (http://bugzilla.novell.com/attachment.cgi?id=394645)
proposed fix

NET often has <supportedRuntime> config element with version attribute value
as "v4.0". Since mono only checks supportedRuntime versions as exact match, it
is not treated as v4.0 and hence runs under 2.0.50727 today and often fails.


---- supported-runtime.cs ----
using System;

public class Test
        public static void Main ()
                Console.WriteLine (typeof (IObserver<object>));

---- supported-runtime.exe.config ----
    <supportedRuntime version="v4.0" />

The attached fix is a hack, but would work in most of the usage scenario.

(It is funny, but .NET app with broken "version" attribute value such as "v4."
simply crashes without any message.)

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list