Xamarin.forms: [Bug] [WPF] [XF 5.0] App crash on launch (resource not found 'themes/formsmasterdetailpage.xaml')

Created on 24 Sep 2020  路  4Comments  路  Source: xamarin/Xamarin.Forms

Description

I've update my new project with XF 5.0 preview 1 and when i try to launch the WPF application the app crash with the following error :
System.Xaml.XamlObjectWriterException: 'La propri茅t茅 Set 'System.Windows.ResourceDictionary.Source' a lev茅 une exception.'
Inner Exception
IOException: Impossible de trouver la ressource 'themes/formsmasterdetailpage.xaml'.

detailLog.txt

Steps to Reproduce

With the repro solution attached bellow, just start the WPF app.

Expected Behavior

Actual Behavior

Basic Information

  • Version with issue: 5.0.0.1487-pre1
  • Last known good version: 4.8
  • IDE: VS19 Version 16.7.4
  • Platform Target Frameworks:

    • WPF : 5.0.0.1487-pre1

  • Nuget Packages:

    • Xamarin.Forms : version 5.0.0.1487-pre1

    • Xamarin.Forms.Platform.WPF : version 5.0.0.1487-pre1

  • Affected Devices:

Screenshots

Reproduction Link

XFCrashRepro.zip

Workaround

masterdetailpage high regression WPF bug

All 4 comments

@Seuleuzeuh can you send a small repo? did you clean rebuild and restart vs when updating the packagee?

Thanks

I can reproduce this and am using all the same software as listed above.

  1. Create a Xamarin.Forms project.
  2. Following these directions for adding the WPF app https://docs.microsoft.com/en-us/xamarin/xamarin-forms/platform/other/wpf
  3. Bring nuget packages up to date with stable versions.
  4. Running WPF app works with stable packages.
  5. Now update packages to pre-release nuget versions.

Update packages
Compile error

@Seuleuzeuh can you send a small repo? did you clean rebuild and restart vs when updating the packagee?

Thanks

@rmarinho i've edited the issue to add a repro project. Yes i've clean/rebuild/restart a multiple time and also reboot 馃槃

Thanks we have a fix for it.

Was this page helpful?
0 / 5 - 0 ratings