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

XAMLC and VisualStudio 2015

$
0
0

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


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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