-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Xamarin developers get warnings when they call APIs that aren't available on the OS version they target #45193
Comments
Is this the reason I'm seeing all these (invalid) warnings when targeting
|
This does look related. @dotMorten, if this is still happening with Preview 7, could you please file a fresh issue for those invalid diagnostics? Please tag @steveisok, @buyaa-n, and me in the issue. Thanks for the help! |
@jeffhandley Thanks! I literally just got to upgrade and noticed warnings were still there, so wanted to go find this issue so I could comment that it hasn't be solved. Thanks for the notification so I didn't have to go search for it :) |
@jeffhandley btw why a fresh issue? Isn't this issue here still valid? |
We have this issue set up as a 'User Story', which is more of a tracking type issue as opposed to a bug report. By filing a fresh issue, it'll show up as a bug and go through our triage process properly and show up on our radar more effectively. Thanks for checking against Preview 7! |
@dotMorten why and which one do you think is invalid? Looks all valid to me |
@buyaa-n CLLocation APIs are supported on iOS since more or less forever. |
Then that API need to be annotated with SupportedOSPlatform("ios[optional_version]"), i guess there is a warning because it is only annotated with SupportedOSPlatform("macOS[optional_version]") or so. But I cannot find such API in runtime, so i could not see the exact cause, also as the API is not in runtime please file an issue in the repo wherever the API defined |
Tagging subscribers to 'arch-android': @steveisok, @akoeplinger Issue DetailsWe already have the analyzer, but this work captures ensuring the Xamarin bindings for Apple & Android platform are using the platform compatibility annotations (as opposed to ones specific to the bindings). Work Items
|
We already have the analyzer, but this work captures ensuring the Xamarin bindings for Apple & Android platform are using the platform compatibility annotations (as opposed to ones specific to the bindings).
https://github.com/dotnet/designs/blob/main/accepted/2020/platform-checks/platform-checks.md#attributes
Work Items
The text was updated successfully, but these errors were encountered: