Skip to content

Instantly share code, notes, and snippets.

@codemillmatt
Last active December 13, 2016 20:03
Show Gist options
  • Save codemillmatt/701ac36ebcdb529befb4048e626642e0 to your computer and use it in GitHub Desktop.
Save codemillmatt/701ac36ebcdb529befb4048e626642e0 to your computer and use it in GitHub Desktop.
XAML Compilation Include & Skip

To compile XAML

This should be in the PCL's AssemblyInfo.cs

using Xamarin.Forms.XAML;

[assembly: XamlCompilation(XamlCompilationOptions.Compile)]

To selectively skip XAML compilation

This will be in the code behind of the XAML page

using Xamarin.Forms.XAML

namespace NativeXamlCmd
{
	[XamlCompilation(XamlCompilationOptions.Skip)]
	public partial class NativeXamlCmdPage : ContentPage
	{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment