xamarin/Xamarin.Forms

[Bug] CarouselView: "Common Language Runtime detected an invalid program" when compiling

Offen

#8.915 geöffnet am 16.12.2019

 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C# (1.926 Forks)batch import
a/Xaml </>a/buildchaina/carouselviewe/8 :clock8:help wantedi/highinactivet/bug :bug:up-for-grabs

Repository-Metriken

Stars
 (5.644 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Description

If the ItemsSource of a CarouselView is set to an array of ContentViews in XAML, and one of the ContentViews contains a Button whose Clicked event handler property is set, then the compiler will fail with the error "Common Language Runtime detected an invalid program." Removing the event handler allows the project to build successfully.

This seems to be related to: https://github.com/alexrainman/CarouselView/issues/303

Steps to Reproduce

Build the attached solution (see below)

Expected Behavior

The solution should compile successfully.

Actual Behavior

The solution fails to compile with the error "Common Language Runtime detected an invalid program."

Basic Information

  • Version with issue: 4.4.0.991265

Reproduction Link

App1.zip

Contributor Guide