xamarin/Xamarin.Forms

[Bug] XAML compilation faills with compiled bindings on UWP

Open

#6,547 opened on Jun 16, 2019

 (12 comments) (1 reaction) (1 assignee)C# (1,926 forks)batch import
3.5.0a/Xaml </>e/5 :clock5:help wantedi/regressionp/UWPt/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Description

UWP project fails to build if it contains any kind of Xamarin.Forms compiled bindings. Build output:

CompiledColorSelectorPage.xaml : error : Value cannot be null.
CompiledColorSelectorPage.xaml : error : Parameter name: type

Possibly related to #5416

Affected Setups:

Bug appears only if .xaml is in UWP project or a shared project linked to one. Data bindings demos and other projects with bindings as a part of .NET Standard library aren't affected. Android projects aren't affected.

Steps to Reproduce

Create a blank Xamarin.Forms + UWP project, move Xamarin.Forms files to UWP project, add a page with compiled bindings, build.

Basic Information

  • Versions with issue: 3.5.0.129452, 4.0.0.497661, 4.1.0.496342-pre2
  • Last known good version: 3.4.0.1039999
  • IDE: VS Community 2017 and 2019
  • Platform Target Frameworks:
    • UWP: 16299, 17763

Reproduction Link

CompiledBindings.zip — a blank project with a page from data binding demos.

Contributor guide