With version 2.0 of
Xamarin.Forms, it is now possible to optionally compile the
XAML code into intermediate language with the
This feature is well documented on the Xamarin website. As a reminder however, here are the main advantages of compiling your
- compile-time validation of your XAML files
- reduces pages load time
- reduces the assembly size by removing text-based .xaml files
And what does it do exactly? It triggers an MSBuild tasks which parses the
XAML and generates the
InitializeComponent method that create the page in code based on your
So here it is friends: How to turn on
XAML compilation at the assembly level.
One line of code only to make your app potentially faster? Use it!