From 5597172dec1ec3477974ad406ef18dc0847a8f62 Mon Sep 17 00:00:00 2001 From: Jonathan Pryor Date: Wed, 19 Feb 2014 22:11:48 -0500 Subject: [PATCH] [runtime] Add a "mobile" runtime version. Xamarin.Android has historically used the "v2.0.50727" runtime version -- which works -- but has the side effect that Mono constantly generates runtime "warnings" akin to: The request to load the assembly mscorlib v2.0.5.0 was remapped to v2.0.0.0 The reason for this is that all of the Xamarin.Android assemblies have the version number v2.0.5.0, while the "v2.0.50727" runtime version expects assemblies to have version number v2.0.0.0; they differ. Result: Mono warns (appropriately), and I do my best to ignore the ~meaningless warning message. (For years and years and years...) It's time we fixed this. Introduce a "mobile" runtime version which specifies the Xamarin.Android v2.0.5.0 assembly versions. Xamarin.Android 4.14+ will then specify the "mobile" runtime version, "fixing" the assembly remap messages. --- mono/metadata/domain.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mono/metadata/domain.c b/mono/metadata/domain.c index 1824c5ba8bd..a9b24fe7350 100644 --- a/mono/metadata/domain.c +++ b/mono/metadata/domain.c @@ -125,6 +125,7 @@ static const MonoRuntimeInfo supported_runtimes[] = { {"v4.0.30319","4.5", { {4,0,0,0}, {10,0,0,0}, {4,0,0,0}, {4,0,0,0} } }, {"v4.0.30128","4.0", { {4,0,0,0}, {10,0,0,0}, {4,0,0,0}, {4,0,0,0} } }, {"v4.0.20506","4.0", { {4,0,0,0}, {10,0,0,0}, {4,0,0,0}, {4,0,0,0} } }, + {"mobile", "2.1", { {2,0,5,0}, {10,0,0,0}, {2,0,5,0}, {2,0,5,0} } }, {"moonlight", "2.1", { {2,0,5,0}, { 9,0,0,0}, {3,5,0,0}, {3,0,0,0} } }, }; -- 2.25.1