Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Created attachment 10853 [details]
Passing test case (forms 1.3.1, but similar code worked for us in 1.4.1)
My team has been using a little reflection to find the custom attributes associated with a type. This has worked well on all platforms (iOS, Android, and WP8 silverlight) through Xamarin Forms 1.4.1. This breaks, only on iOS, using Xamarin Forms 1.4.2.
Created attachment 10854 [details]
Failing test case (updated packages references to forms 1.4.2)
Tested with 1.4.3-pre1 - problem's still there.
Oh, and to clarify, the problem occurs only on attributes assigned to classes that are derived from Xamarin Forms classes, for instance, ContentPage. We see the problem in our app using XAML-specified subclasses, but for simplicity, my examples just show classes specified wholly in C#.
I have been able to replicate the issue on my end by doing the following:
1. Download "Passing Test Case"
2. Clean and then build for iOS
3. Remove XF packages
4. Add XF 1.4.3-pre1 packages
5. Clean and then build for iOS
Marking as confirmed.
System.TypeLoadException: Could not load type Xamarin.Forms.Platform._PageRenderer, Xamarin.Forms.Platform, Version=126.96.36.199, Culture=neutral, PublicKeyToken=null while decoding custom attribute
App is not loading Xamarin.Forms.Platform.
var assemblyName = new AssemblyName("Xamarin.Forms.Platform, Version=188.8.131.52, Culture=neutral, PublicKeyToken=null");
I built the test app using the new application wizard. There shouldn't be anything odd in the solution or project level stuff. I just added the nuget and off I went. Is there a manual step to force Xamarin.Forms.Platform to load that I need to do? Or are you just noting that it's a problem on the Xamarin end?
This will be fixed in 1.4.4
I have checked this issue with provided steps in comment#4 and I am not getting any Exception on X.F 1.4.4-pre1, Its working fine on both iOS and Android.
Hence closing this issue.