Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Core] remove array covariant cast for UWP #9135

Merged
merged 1 commit into from
Jan 9, 2020

Conversation

jonathanpeppers
Copy link
Member

@jonathanpeppers jonathanpeppers commented Jan 9, 2020

Description of Change

Fixes #9134

A reported failure of:

System.InvalidCastException: 'Unable to cast object of type 'System.Attribute[]' to type 'Xamarin.Forms.HandlerAttribute[]'.'

was happening on UWP, @PureWeen also could repro with a new app.

What is weird about this:

  • It appears to work with .NET Framework & Mono
  • It appears to work for me locally if I just launch the Control
    Gallery on UWP.

I suspect something is happening with how Xamarin.Forms is built
(using 2017 and older UWP SDKs), but not really sure?

I think we should just fix this quickly and I will revisit later.

Issues Resolved

API Changes

None

Platforms Affected

  • Core/XAML (all platforms)
  • UWP

Behavioral/Visual Changes

None

Before/After Screenshots

Not applicable

Testing Procedure

We should perhaps manually test the NuGet package on UWP?

It is really weird this works for me locally on the 4.4.0 branch running the UWP ControlGallery:

image

PR Checklist

  • Targets the correct branch
  • Tests are passing (or failures are unrelated)

Fixes: xamarin#9134

A reported failure of:

    System.InvalidCastException: 'Unable to cast object of type 'System.Attribute[]' to type 'Xamarin.Forms.HandlerAttribute[]'.'

was happening on UWP, @PureWeen also could repro with a new app.

What is weird about this:

* It appears to work with .NET Framework & Mono
* It appears to work for me locally if I just launch the Control
  Gallery on UWP.

I suspect something is happening with how Xamarin.Forms is built
(using 2017 and older UWP SDKs), but not really sure?

I think we should just fix this quickly and I will revisit later.
@samhouts samhouts merged commit 8ccad6d into xamarin:4.4.0 Jan 9, 2020
@samhouts samhouts added this to the 4.4.0 milestone Jan 9, 2020
tuyen-vuduc pushed a commit to NAXAM/Xamarin.Forms that referenced this pull request Jan 14, 2020
* 'master' of github.com:xamarin/Xamarin.Forms: (330 commits)
  [Android] Fix color filter usage on API29 (xamarin#9180)
  Add null check to GetIconColor (xamarin#9172)
  Apply cecil fixes to make packages 2017 compatible (xamarin#9145)
  [UWP] Attempt to resolve entry on UWP not correctly calculating the correct height when in a scroll view (xamarin#8214)
  Fixes 7992 Changes UWP DatePicker to show the picker flyout on DatePickerFocus() (xamarin#8056)
  Update bug_report.md (xamarin#8688)
  [android/ios] improve perf when not using Application.Properties (xamarin#8887)
  The great Androidx IF Def'ing of 2019 (xamarin#8898)
  Added IconColor property for managing navigation icon color (xamarin#5185)
  Add UWP display prompt (xamarin#8720)
  fix bad merge
  Fix 8743 - now using specific style in SearchBar [UWP] (xamarin#8773)
  Added the SwipeView tag to the Core Gallery samples (xamarin#8819)
  [Tizen] Shell: FlyoutBackgroundImage, FlyoutBackgroundImageAspect (xamarin#8905)
  [Core] remove array covariant cast for UWP (xamarin#9135)
  [android] remove Anticipator.cs for now (xamarin#8858)
  Update the CarouselView Position setting the CurrentItem (xamarin#7946) fixes xamarin#7924
  send remove events (xamarin#9124)
  [platform] improve perf of PropertyChangedEventArgsExtensions (xamarin#9084)
  Fix SeachBarRenderer CreateNativeControl issue (xamarin#8946)
  ...

# Conflicts:
#	Xamarin.Forms.Core/FontImageSource.cs
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants