duplicate xaml compilation attribute code example
Example: duplicate xaml compilation attribute
It is now declared in "AssemblyInfo.cs" in the shared project.
[assembly: XamlCompilation(XamlCompilationOptions.Compile)]
Credit to: @seanalford in the Xamarin Forum