Hi All,
I have a strange problem trying to use XAML compilation in existing Xamarin.Forms project.
I have added [assembly: XamlCompilation(XamlCompilationOptions.Compile)] directive into AssemblyInfo.cs file in PCL.
It compiles and run successfully inside Xamarin Studio.
When I open same project in Visual Studio 2015 and compile, ALL XAML files failed with one of two errors:
- Page1.xaml : error : Object reference not set to an instance of an object.
- Page2.xaml : error : The given key was not present in the dictionary.
If I comment [assembly] directive, application compiles and runs successfully.
Both Xamarin Studio and Visual Studio plugins are updated to the latest version.
Any idea about how to solve the problem is greatly appriciated