[mapguide-commits] r8810 - in sandbox/jng/aspnet50/Web/src/MapGuideDotNetCoreApi: . Custom

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Thu Nov 5 02:46:00 PST 2015


Author: jng
Date: 2015-11-05 02:45:59 -0800 (Thu, 05 Nov 2015)
New Revision: 8810

Modified:
   sandbox/jng/aspnet50/Web/src/MapGuideDotNetCoreApi/Custom/DnxCoreShims.cs
   sandbox/jng/aspnet50/Web/src/MapGuideDotNetCoreApi/project.json
Log:
Remove System.Environment.NewLine stub. This exists in the System.Runtime.Extensions CoreCLR package.

Remove stubs for SerializationInfo and StreamingContext as the exception constructor that required these two parameters has been removed from ManagedException

Modified: sandbox/jng/aspnet50/Web/src/MapGuideDotNetCoreApi/Custom/DnxCoreShims.cs
===================================================================
--- sandbox/jng/aspnet50/Web/src/MapGuideDotNetCoreApi/Custom/DnxCoreShims.cs	2015-11-04 15:11:19 UTC (rev 8809)
+++ sandbox/jng/aspnet50/Web/src/MapGuideDotNetCoreApi/Custom/DnxCoreShims.cs	2015-11-05 10:45:59 UTC (rev 8810)
@@ -1,5 +1,9 @@
 namespace System
 {
+    #if DNXCORE50
+    /// <summary>
+    /// This is a stub attribute that has no effect on .net Core
+    /// </summary>
     [AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Enum|AttributeTargets.Delegate, Inherited = false)]
     public sealed class SerializableAttribute : Attribute
     {
@@ -11,23 +15,5 @@
         
         public SystemException(string message) : base() { }
     }
-    
-    public static class Environment
-    {
-        public static string NewLine { get { return "\n"; } }
-    }
-    
-    namespace Runtime
-    {
-        namespace Serialization
-        {
-            public class SerializationInfo
-            {
-            }
-            
-            public class StreamingContext
-            {
-            }
-        }
-    }
+    #endif
 }
\ No newline at end of file

Modified: sandbox/jng/aspnet50/Web/src/MapGuideDotNetCoreApi/project.json
===================================================================
--- sandbox/jng/aspnet50/Web/src/MapGuideDotNetCoreApi/project.json	2015-11-04 15:11:19 UTC (rev 8809)
+++ sandbox/jng/aspnet50/Web/src/MapGuideDotNetCoreApi/project.json	2015-11-05 10:45:59 UTC (rev 8810)
@@ -26,6 +26,7 @@
         "System.Linq": "4.0.1-beta-23225",
         "System.Runtime": "4.0.21-beta-23225",
         "System.Threading": "4.0.11-beta-23225",
+        "System.Runtime.Extensions": "4.0.11-beta-23225",
         "System.Runtime.InteropServices": "4.0.21-beta-23225"
       }
     }



More information about the mapguide-commits mailing list