davidortinau / FlyMe

Xamarin.Forms demo for 3 sessions presented at Microsoft Ignite 2019
MIT License
170 stars 50 forks source link

UWP flavour hangs visual studio for a long time, doesn't run #2

Open MitchBomcanhao opened 4 years ago

MitchBomcanhao commented 4 years ago

Hi David, I'm trying to run the UWP version of this app but hitting some issues

Cloning the project takes a really long time with visual studio hanging for a considerable amount of time. once the UI is back on, I can try to build it. again it may take a while. I've spotted that it seems to be generating different sizes of the beach images, on a folder called resizetizer. it literally takes several minutes to do so, and I think it never actually completes the set, as there are 10 source images, it makes 3 sizes for each one, but the largest size of the largest image (beach_10) never shows up on the folder.

If it completes building and attempts to run, it will then crash on launch

The class, property, or method you are attempting to use ('VerifyShellUWPFlagEnabled') is part of Shell; to use it, you must opt-in by calling Forms.SetFlags("Shell_UWP_Experimental") before calling Forms.Init(). that flag is indeed set in app.xaml.cs, so the error is very odd.

Does the app actually run for you? do all the images get generated in folders like FlyMe.UWP\obj\x86\Debug\resizetizer\Assets?

MitchBomcanhao commented 4 years ago

I've managed to get it to run by setting the Shell_UWP_Experimental flag in the app class instead of doing it in the UWP project. Seems like setting the platform specific flag gets deleted and overwritten by the app class flags.