Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

XamlC on assembly level throws unhandled exception for a simple Xaml page

$
0
0

Environment:
Xamarin.Forms version: 2.0.0.6490
Visual Studio Community 2015 (w/ Update 1) on Win10 (32-bit)
Android Phone Version: 4.2,1
PCL project

Description:
The Xaml page (attached as text file) is just an example, from the book "Creating Mobile Apps with Xamarin.Forms".
Running it with the assembly level XamlC option set to Compile, throws the following error:

Unhandled Exception:
System.InvalidProgramException: Invalid IL code in CollectionViews.ListViewArrayPage:InitializeComponent (): IL_08bf: callvirt 0x0a000037

Resolution:
If you turn off XamlC, everything compiles and runs fine.


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>