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

Don't build if used any of not supported API #1735

Open
montyclt opened this Issue Nov 29, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@montyclt

montyclt commented Nov 29, 2018

The Blazor FAQs says:

Yes, the .NET runtime used for Blazor supports .NET Standard 2.0. APIs that aren't supported in the browser throw Not Supported exceptions.

There are any list with unsopported APIs of the .NET Standard? Can a MSBuild task used to interrumpt the build and mark as error if any of this APIs are used instead of detect the error in execution time when the exception is thrown?

@montyclt montyclt changed the title from Don't build is used any not supported API to Don't build if used any of not supported API Nov 29, 2018

@danroth27

This comment has been minimized.

Member

danroth27 commented Nov 29, 2018

We don't have the precise list yet of the .NET Standard APIs that will work in Blazor. A lot of APIs already work today. Some APIs will work, but haven't been implemented yet. Others will never work because of the constraints of running in the browser. I can imagine us shipping an analyzer that provides a build time experience for detecting usage of APIs that won't work.

@danroth27 danroth27 added this to the Backlog milestone Nov 29, 2018

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