Apr 2, 2015 at 10:41 PM
Edited Apr 2, 2015 at 10:43 PM
Yes, I have Windows 10 preview installed on a box with Visual Studio 2015 CTP 6 along with the Windows 10 Technical Preview tools. I'm also using the new Universal App -> Everything in one project.
The first thing I tried is installing all the relevant Prism Nugets. It compiles without any problem. It however install the Windows 8.1 stuff, meaning you end up with this guy referenced: Microsoft.Practices.Prism.StoreApps.Windows.
That means this is enabled:
SettingsPane.GetForCurrentView().CommandsRequested += OnCommandsRequested;
That works just fine (although the Settings pane seems to be gone in Windows 10). Now when you run it in the Phone emulator, the GetForCurrentView method throws a TypeLoadException.
I tried removing the reference to Microsoft.Practices.Prism.StoreApps.Windows manually, adding the MvvmAppBase file to my project, setting the WINDOWS_PHONE_APP compilation symbol and putting a try catch around the piece that breaks in Windows 10 (not phone)
HardwareButtons.BackPressed += OnHardwareButtonsBackPressed;
Working so far, but I didn´t try on an actual W10 phone device.
I wanted to use Environment.OSVersion with an if statement, but it's gone. A hack, but hey, when you're on the bleeding edge, you bleed. :)