Skip to content
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

Handle unsupported browser warnings #43363

Merged
31 commits merged into from
Nov 25, 2020
Merged

Conversation

buyaa-n
Copy link
Member

@buyaa-n buyaa-n commented Oct 13, 2020

Fixes #42335

This PR will:

  1. Add MSBuild item <SupportedPlatform Include="browser" /> for the browser targets so that we could see warning if it accesses and API unsupported on browser.
  2. Tried to resolve warnings/errors that currently exist with the annotations that have been made. Mostly suppressed them as they are unconditionally accessing APIs having assembly-level Unsupported on browser attribute

The warnings found attached unsupported browser warnings.txt

Copy link
Member

@jeffhandley jeffhandley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are only a few #pragma warning disable statements left that don't have issues applied to them: XmlDownloadManagerAsync and Transaction. Is it appropriate to file follow-up issues for those too?

@buyaa-n
Copy link
Member Author

buyaa-n commented Nov 20, 2020

There are only a few #pragma warning disable statements left that don't have issues applied to them: XmlDownloadManagerAsync and Transaction. Is it appropriate to file follow-up issues for those too?

Those do not need an issue, safe to suppress scenarios, improved the suppression comments

…scriptionProvider.CreateInstance and related updates
@ghost
Copy link

ghost commented Nov 25, 2020

Hello @buyaa-n!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit abc525d into dotnet:master Nov 25, 2020
@buyaa-n buyaa-n deleted the add_browser_support branch December 10, 2020 07:18
@ghost ghost locked as resolved and limited conversation to collaborators Jan 9, 2021
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Blazor developers get warnings when they call APIs that aren't available on WebAssembly