I've got a project that was on 4.8 and I thought I'd update in 5.0 today but after fixing a few things (getting the Community Toolkit for the Expander for example) and building it crashes on startup. Specifically I'm getting this error:
Method not found: bool Xamarin.Forms.Internals.ResourceLoader.get_IsEnabled()'
I've done a clean and build as well as a complete delete of the bin/obj files.
Answers
Correction: I am upgrading from 4.6
1.These
Expander
feature has been (or will be soon) migrated to the Xamarin Community Toolkit. Please add the latest Xamarin Community Toolkit to your project, make sure resolve the new namespaces in the sample and complie your project again.Check the doc:
https://docs.microsoft.com/en-us/xamarin/xamarin-forms/release-notes/5.0/5.0.0#c-ui-expander-and-mediaelement-moved
2.Where did you call the
ResourceLoader.get_IsEnabled
method? The Internals.ResourceLoader class add the IsEnabled property in Xamarin.Forms 5, try using it instead.Related link:
https://docs.microsoft.com/en-us/xamarin/xamarin-forms/release-notes/5.0/5.0.0-api#type-changed-xamarinformsinternalsresourceloader
Xamarin forums are migrating to a new home on Microsoft Q&A!
We invite you to post new questions in the Xamarin forums’ new home on Microsoft Q&A!
For more information, please refer to this sticky post.
@DuncanCole Pleaes make sure you've also update the Xamarin.Forms package on each platform project. On Android, it requires to set the TargetFramework 10.0.
Xamarin forums are migrating to a new home on Microsoft Q&A!
We invite you to post new questions in the Xamarin forums’ new home on Microsoft Q&A!
For more information, please refer to this sticky post.