[CoreMidi] Fix availability attributes for .NET 9.

This commit is contained in:
Rolf Bjarne Kvinge 2024-09-04 18:28:47 +02:00
Родитель a6a11784d4
Коммит da5950b502
2 изменённых файлов: 10 добавлений и 10 удалений

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

@ -1462,11 +1462,11 @@ namespace CoreMidi {
#if NET
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
[SupportedOSPlatform ("maccatalyst")]
[SupportedOSPlatform ("macos")]
[UnsupportedOSPlatform ("tvos")]
#else
[NoWatch, NoTV, Mac (11, 0), iOS (14, 0), MacCatalyst (14, 0)]
[NoWatch, NoTV, iOS (14, 0), MacCatalyst (14, 0)]
#endif
public MidiProtocolId ProtocolId {
get {
@ -2049,11 +2049,11 @@ namespace CoreMidi {
#if NET
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
[SupportedOSPlatform ("maccatalyst")]
[SupportedOSPlatform ("macos")]
[UnsupportedOSPlatform ("tvos")]
#else
[NoWatch, NoTV, Mac (11, 0), iOS (14, 0), MacCatalyst (14, 0)]
[NoWatch, NoTV, iOS (14, 0), MacCatalyst (14, 0)]
#endif
public MidiProtocolId ProtocolId {
get {
@ -2496,11 +2496,11 @@ namespace CoreMidi {
#if NET
[SupportedOSPlatform ("ios14.0")]
[SupportedOSPlatform ("maccatalyst14.0")]
[SupportedOSPlatform ("maccatalyst")]
[SupportedOSPlatform ("macos")]
[UnsupportedOSPlatform ("tvos")]
#else
[NoWatch, NoTV, Mac (11, 0), iOS (14, 0), MacCatalyst (14, 0)]
[NoWatch, NoTV, iOS (14, 0), MacCatalyst (14, 0)]
#endif
public MidiProtocolId ProtocolId {
get {

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

@ -308,10 +308,10 @@ namespace CoreVideo {
}
#if NET
[SupportedOSPlatform ("macos12.0")]
[SupportedOSPlatform ("macos")]
[SupportedOSPlatform ("tvos15.0")]
[SupportedOSPlatform ("ios15.0")]
[SupportedOSPlatform ("maccatalyst15.0")]
[SupportedOSPlatform ("maccatalyst")]
#else
[iOS (15, 0), MacCatalyst (15, 0), TV (15, 0), Mac (12, 0), Watch (8, 0)]
#endif
@ -322,10 +322,10 @@ namespace CoreVideo {
/// <param name="pixelFormat">The pixel format to check.</param>
/// <returns>Whether the specified pixel format is supported or not.</returns>
#if NET
[SupportedOSPlatform ("macos12.0")]
[SupportedOSPlatform ("macos")]
[SupportedOSPlatform ("tvos15.0")]
[SupportedOSPlatform ("ios15.0")]
[SupportedOSPlatform ("maccatalyst15.0")]
[SupportedOSPlatform ("maccatalyst")]
#else
[iOS (15, 0), MacCatalyst (15, 0), TV (15, 0), Mac (12, 0), Watch (8, 0)]
#endif