diff --git a/src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems b/src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems index d569bff87c5737..1fc4b8fb19ed63 100644 --- a/src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems +++ b/src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems @@ -1791,7 +1791,7 @@ - + @@ -1818,6 +1818,9 @@ + + + Common\Interop\OSX\Interop.libobjc.cs diff --git a/src/libraries/System.Private.CoreLib/src/System/Environment.OSVersion.Browser.cs b/src/libraries/System.Private.CoreLib/src/System/Environment.OSVersion.Browser.cs new file mode 100644 index 00000000000000..9dd80cbbd579e5 --- /dev/null +++ b/src/libraries/System.Private.CoreLib/src/System/Environment.OSVersion.Browser.cs @@ -0,0 +1,14 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace System +{ + public static partial class Environment + { + private static OperatingSystem GetOSVersion() + { + return new OperatingSystem(PlatformID.Other, new Version(1, 0, 0, 0)); + } + } +} diff --git a/src/libraries/System.Private.CoreLib/src/System/PlatformID.cs b/src/libraries/System.Private.CoreLib/src/System/PlatformID.cs index 1e0a688ba69079..f03b93940bb6e6 100644 --- a/src/libraries/System.Private.CoreLib/src/System/PlatformID.cs +++ b/src/libraries/System.Private.CoreLib/src/System/PlatformID.cs @@ -14,6 +14,7 @@ public enum PlatformID [EditorBrowsable(EditorBrowsableState.Never)] WinCE = 3, Unix = 4, [EditorBrowsable(EditorBrowsableState.Never)] Xbox = 5, - [EditorBrowsable(EditorBrowsableState.Never)] MacOSX = 6 + [EditorBrowsable(EditorBrowsableState.Never)] MacOSX = 6, + Other = 7 } } diff --git a/src/libraries/System.Runtime/ref/System.Runtime.cs b/src/libraries/System.Runtime/ref/System.Runtime.cs index 81fe026049b111..01dad105b65373 100644 --- a/src/libraries/System.Runtime/ref/System.Runtime.cs +++ b/src/libraries/System.Runtime/ref/System.Runtime.cs @@ -3072,6 +3072,7 @@ public enum PlatformID Unix = 4, Xbox = 5, MacOSX = 6, + Other = 7, } public partial class PlatformNotSupportedException : System.NotSupportedException {