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

Usage in a net standard library #7

Open
Lelelo1 opened this issue Jan 26, 2020 · 1 comment
Open

Usage in a net standard library #7

Lelelo1 opened this issue Jan 26, 2020 · 1 comment

Comments

@Lelelo1
Copy link

Lelelo1 commented Jan 26, 2020

Hello!

First of all having to add this

[AttributeUsage(AttributeTargets.Property)]
    public class BindableAttribute : Attribute { }

was not obvious to me, maybe add it to the readme?


I am getting the following exceptions:

iOS

Attempting to JIT compile method 'void Namespace.ScrollCollectionView:.cctor ()' while running in aot-only mode. See https://docs.microsoft.com/xamarin/ios/internals/limitations for more information.

Android

Invalid IL code in Namespace.ScrollCollectionView

It works brilliantly when having the custom control placed inside the Forms project. But not when having control placed inside a net standard library.

The error is thrown when the controls has a property given [Bindable] attribute and are instantiated.

@nicolo-ottaviani
Copy link
Owner

Thank you very much for your report!! I will investigate the bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants