nicolo-ottaviani / Xamarin.BindableProperty.Fody

An assembly weaver, based on Fody, that automatically generates bindable properties on a Xamarin Forms project.
MIT License
9 stars 3 forks source link

Usage in a net standard library #7

Open Lelelo1 opened 4 years ago

Lelelo1 commented 4 years ago

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 commented 4 years ago

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