diff --git a/src/ObjCRuntime/PlatformAvailability.cs b/src/ObjCRuntime/PlatformAvailability.cs index 8c8bedd081..3dcb3b9455 100644 --- a/src/ObjCRuntime/PlatformAvailability.cs +++ b/src/ObjCRuntime/PlatformAvailability.cs @@ -289,10 +289,13 @@ namespace ObjCRuntime const int sys2 = 1937339186; // Deprecated in OSX 10.8 - but no good alternative is (yet) available -#if !NET - [Deprecated (PlatformName.MacOSX, 10, 8)] -#else +#if NET [UnsupportedOSPlatform ("macos10.8")] +#if MONOMAC + [Obsolete ("Starting with macos10.8.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")] +#endif +#else + [Deprecated (PlatformName.MacOSX, 10, 8)] #endif [DllImport ("/System/Library/Frameworks/Carbon.framework/Versions/Current/Carbon")] static extern int Gestalt (int selector, out int result); diff --git a/src/ObjCRuntime/SystemVersion.cs b/src/ObjCRuntime/SystemVersion.cs index e0b8a2f954..0fa224f4ab 100644 --- a/src/ObjCRuntime/SystemVersion.cs +++ b/src/ObjCRuntime/SystemVersion.cs @@ -28,7 +28,14 @@ namespace ObjCRuntime { const int sys2 = 1937339186; // Deprecated in OSX 10.8 - but no good alternative is (yet) available +#if NET + [UnsupportedOSPlatform ("macos10.8")] +#if MONOMAC + [Obsolete ("Starting with macos10.8.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")] +#endif +#else [Deprecated (PlatformName.MacOSX, 10, 8)] +#endif [DllImport ("/System/Library/Frameworks/Carbon.framework/Versions/Current/Carbon")] static extern int Gestalt (int selector, out int result);