Xamarin.Forms.Mocks icon indicating copy to clipboard operation
Xamarin.Forms.Mocks copied to clipboard

Bump to XF 5.0

Open adamhill opened this issue 3 years ago • 1 comments

Any chance of this happening before Maui release?

adamhill avatar Feb 26 '22 06:02 adamhill

Are you hitting an issue using Xamarin.Forms 5? I normally don’t update this package if it continues to work.

jonathanpeppers avatar Feb 27 '22 23:02 jonathanpeppers

Hello, thank you for this wonderful mocking package !

Yes, I am hitting an issue using Xamarin.Forms 5, (exact version 5.0.0.2515). It happens on instantiating a page, on InitializingComponent();

Error message below:

{"Method not found: 'Boolean Xamarin.Forms.Internals.ResourceLoader.get_IsEnabled()'."}

mjeson avatar Dec 28 '22 22:12 mjeson

@mjeson can you find the exact version that breaks? When this issue was filed, it was working with some version of Xamarin.Forms 5.

The error above seems like you need to update to latest Xamarin.Forms, it looks like this ResourceLoader.IsEnabled property was added ~2 years ago:

https://github.com/xamarin/Xamarin.Forms/blob/c1a88782ee39d1218c51058cc913e371653cfd04/Xamarin.Forms.Core/Internals/ResourceLoader.cs#L39-L41

jonathanpeppers avatar Dec 30 '22 17:12 jonathanpeppers

Hi @jonathanpeppers . Thank you for replying. Turns out this is my issue. I had a mismatch on the Xamarin Forms version. The mobile project is running on Xamarin Forms 5.0.0.2515, but the test project running on Xamarin Forms 4.7. Updating the test project to Xamarin Forms 5 solves my issue. Thank you so much!

mjeson avatar Dec 30 '22 21:12 mjeson