-
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
Design capability APIs #24259
Comments
Perhaps relevant: #17973 Here people can "do the thing", but impacts of implementations might mean they don't want to. |
Note that your first example has also the problem that it throws PNSE on UWP. We may want to prefer a loosely typed system like |
Yes, but this would require a centralized place, which I don't think we want. The registry is a great example: it doesn't ship in-box with UWP or .NET Core -- it's a NuGet package. If the support inside the package changes, we shouldn't be forced to update the runtime for that. Having a centralized override for quirking seems desirable but I don't see how this would work. If the library returned false from its capability API overriding it to true doesn't make more stuff work IMHO. And the reverse seems nonsensical to me. |
@terrajobst, are you still working on this or can it be closed? |
@terrajobst bump on the above question |
Not at this point, no |
We need to list & drive a design of capability APIs as explained here:
https://github.com/dotnet/designs/blob/master/accepted/compat-pack/compat-pack.md#non-goals
Instead of writing code like this:
we should be promoting code like this:
The text was updated successfully, but these errors were encountered: