Skip to content

Double availability warning for properties in .NET 7 #16683

Description

@filipnavara

.NET 7 SDK on our CI machine:

Error: /Users/teamcity/actions-runner/_work/emclient/emclient/MailClient.Common.UI/Themes/ColorThemes/SystemColorTheme.Mac.cs(155,22): error CA1422: This call site is reachable on: 'macOS/OSX' 10.14 and later. 'NSColor.WindowFrame.get' is obsoleted on: 'macOS/OSX' 11.0 and later (Use 'NSVisualEffectMaterial.Title' instead.). [/Users/teamcity/actions-runner/_work/emclient/emclient/MailClient.Common.UI/MailClient.Common.UI.csproj::TargetFramework=net7.0-macos]
Error: /Users/teamcity/actions-runner/_work/emclient/emclient/MailClient.Common.UI/Themes/ColorThemes/SystemColorTheme.Mac.cs(155,22): error CA1422: This call site is reachable on: 'macOS/OSX' 10.14 and later. 'NSColor.WindowFrame' is obsoleted on: 'macOS/OSX' 11.0 and later (Use 'NSVisualEffectMaterial.Title' instead.). [/Users/teamcity/actions-runner/_work/emclient/emclient/MailClient.Common.UI/MailClient.Common.UI.csproj::TargetFramework=net7.0-macos]

Older SDK on my local machine (also happens with .NET 6 SDK):

/Users/filipnavara/Projects/emclient-temp/MailClient.Common.UI/Themes/ColorThemes/SystemColorTheme.Mac.cs(155,22): warning CA1416: This call site is reachable on: 'macOS/OSX' 10.14 and later. 'NSColor.WindowFrame.get' is unsupported on: 'macOS/OSX' 11.0.0 and later. [/Users/filipnavara/Projects/emclient-temp/MailClient.Common.UI/MailClient.Common.UI.csproj::TargetFramework=net7.0-macos]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIf an issue is a bug or a pull request a bug fix

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions