This is Xamarin's bug tracking system. For product support, please use the support links listed in your Xamarin Account.
Bug 51567 - XamlC: "The given key was not present in the dictionary." in some xaml files
Summary: XamlC: "The given key was not present in the dictionary." in some xaml files
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms (show other bugs)
Version: 2.3.4
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-01-17 09:30 UTC by Michael Rumpler
Modified: 2017-01-25 14:16 UTC (History)
3 users (show)

See Also:
Tags: AC XamlC
Is this bug a regression?: Yes
Last known good build: 2.3.3.180


Attachments
Repro project (210.60 KB, application/x-zip-compressed)
2017-01-17 09:30 UTC, Michael Rumpler
Details

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 2.3.4.184-pre1 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

Note You need to log in before you can comment on or make changes to this bug.