-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Unsupported IBinding implementation after migration on 11.1 #16623
Comments
How exactly did you manage to implement an interface marked with [NotClientImplementable]? We are injecting special non-implementable methods to our ref assemblies to prevent that |
Interface |
See also: #15270 |
It's marked as such at least since 11.0.0-preview1. I think our injected method no longer prevents Roslyn from building the assembly. |
Seems like we're talking about different things...
It doesn't matter mark you it like |
Those interfaces aren't supposed to be implementable from user code. We've had measures to prevent those from being implemented, but those aren't working with the new SDK since roslyn now ignores internal interface members in our ref assemblies. IBinding not working when implemented by user code is expected. |
My own binding works as expected, and implementing my own binding was the best solution in my case. If you want to prevent user code from implementing interface, just make it internal (like |
Describe the bug
I have custom
IBinding
implementation, based on math expressions. After migrating from versio11.0
to11.1
I gotUnsupported IBinding implementation
exception becaus my MathExpressionBinding doesn't implementIBinding2
interface. How can I implement it if it's internal, how can I implement any customIBinding
? Also I can't inherits fromBindingBase
because I cant implement it'sprivate protected
members. Version11.1
is backward incompatible with11.0
, it breaks binary compatibility, it breaks behavior compatibility, it breaks sematic versioning principles. It must be12.0
, but not11.1
. It's fully incompatible with 11.0.To Reproduce
Just try to implement
IBinding2
interface.Expected behavior
No response
Avalonia version
11.1.2
OS
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: