xamarin/Xamarin.Forms

ImageResourceExtension gives an System.PlatformNotSupportedException in UWP release

オープン

#4,408 opened on 2018/11/14

 (3 件のコメント) (0 件のリアクション) (0 人の担当者)C# (1,926 件のフォーク)batch import
e/4 :clock4:help wantedinactivep/UWPt/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

Description

Xamarin.Forms sample you can use to recreate the problem is: https://github.com/xamarin/xamarin-forms-samples/XAML/MarkupExtensions This problem does not appear with the UWP debug version of the sample app. If you compile and run this sample for UWP release, select Image Resource Demo. You will immediately break with a System.PlatformNotSupportedException. This will happen with any sample using this extension. And this includes any of the Xamarin-Forms-Book-Samples using the ImageResourceExtension.cs.

Steps to Reproduce

If you compile and run the sample described above for UWP release, then select the Image Resource Demo. You will immediately break with a System.PlatformNotSupportedException. The error occurs at the following line: return ImageSource.FromResource(assemblyName + "." + Source); The source is an embedded image.

Expected Behavior

Actual Behavior

Basic Information

  • Version with issue:
  • Last known good version: I don't know. I discovered the problem while trying to compile a Xamarin.Forms book sample and then again when I tried to compile a Xamarin.forms sample.
  • IDE:
  • Platform Target Frameworks: Xamarin.Forms Version=3.3.0.967583 UWP version : 10.0.17134.0
    • iOS:
    • Android:
    • UWP:
  • Android Support Library Version:
  • Nuget Packages:
  • Affected Devices:

Screenshots

Reproduction Link

コントリビューターガイド