Skip to content

Conversation

@Rick-Anderson Rick-Anderson marked this pull request as draft January 13, 2025 22:02
## Subset of .NET APIs for Blazor WebAssembly apps

A curated list of specific .NET APIs that are supported on the browser for Blazor WebAssembly isn't available. However, you can manually [search for a list of .NET APIs annotated with `[UnsupportedOSPlatform("browser")]`](https://source.dot.net/#System.Private.CoreLib/src/libraries/System.Private.CoreLib/src/System/Runtime/Versioning/PlatformAttributes.cs,34041602e232c616,references) to discover .NET APIs that aren't supported in WebAssembly.
A curated list of specific .NET APIs that are supported on the browser for Blazor WebAssembly isn't available. However, you can manually <!--keep--> [search for a list of .NET APIs annotated with `[UnsupportedOSPlatform("browser")]`](https://source.dot.net/#System.Private.CoreLib/src/libraries/System.Private.CoreLib/src/System/Runtime/Versioning/PlatformAttributes.cs,34041602e232c616,references) to discover .NET APIs that aren't supported in WebAssembly.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

add <!--keep--> to
exclude from search using ^(?=.*https:\/\/source\.dot\.net)(?!.*--keep--).*

Copy link
Contributor

Choose a reason for hiding this comment

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

What are the criteria you're using to decide which ones remain as source links? That seems a little risky since the links are not going to Main, the code they show will soon get out of sync with the current state of the code.

Copy link
Collaborator

Choose a reason for hiding this comment

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

This was kept because the source browser makes it easy to spot these APIs that have the [UnsupportedOSPlatform("browser")] attribute on them via a filtered cross-link. AFAIK, I have XREF for everything else.

@Rick-Anderson Rick-Anderson marked this pull request as ready for review January 14, 2025 01:37
Copy link
Contributor

@tdykstra tdykstra left a comment

Choose a reason for hiding this comment

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

A couple questions.

@Rick-Anderson Rick-Anderson enabled auto-merge (squash) January 14, 2025 19:48
@Rick-Anderson Rick-Anderson merged commit 5f775f1 into main Jan 14, 2025
3 checks passed
@Rick-Anderson Rick-Anderson deleted the fixRefs/4/m2 branch January 14, 2025 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Jan: Replace 25 source links with xref links

4 participants