[NET 6 Attribute Conversion] ObjCRuntime (#14006)

* Removing COREBUILD for mellite

* Remove existing attributes

* Attribute Conversion

* Reverting removing if COREBUILD

Co-authored-by: tj_devel709 <antlambe@microsoft.com>
This commit is contained in:
TJ Lambert 2022-02-02 11:45:23 -06:00 коммит произвёл GitHub
Родитель 844df2123f
Коммит 138604faa6
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 13 добавлений и 3 удалений

Просмотреть файл

@ -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);

Просмотреть файл

@ -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);