Bug 51567

Summary: XamlC: "The given key was not present in the dictionary." in some xaml files
Product: Forms Reporter: Michael Rumpler <michael>
Component: FormsAssignee: Bugzilla <bugzilla>
Severity: normal CC: david, jas, stephane.delcroix
Priority: ---    
Version: 2.3.4   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Tags: AC XamlC Is this bug a regression?: Yes
Last known good build:
Attachments: Repro project

Description Michael Rumpler 2017-01-17 09:30:43 UTC
Created attachment 19362 [details]
Repro project

After upgrading from Xamarin.Forms 2.3.3 to I get the error:

    ...\Repro.KeyNotFound.App.xaml : error : The given key was not present in the dictionary.

In my main project I also get this error in two other xaml files.

As I don't know, what key it is missing I copied the whole app.xaml to the repro project.

I use XamlC in my solution and in the repro project. If I disable XamlC in the repro project, then it works. That project doesn't use all the styles I define in the app.xaml. My own solution crashes on start.

I tested on iOS and Android and both behave the same.
Comment 1 Stephane Delcroix 2017-01-17 15:35:02 UTC
see https://github.com/xamarin/Xamarin.Forms/pull/684
Comment 2 Stephane Delcroix 2017-01-25 14:16:23 UTC
this will be fixed in 2.3.4-pre2