Setup Environment
1. Turn on Hyper-V
2. Install Visual Studio 2015 Community RC
3. Install ADK/WDK/SDK
Get start to build Windows 10 Universal App---Microsoft
https://msdn.microsoft.com/en-us/library/windows/apps/xaml/dn609832.aspx
由于在UAP的reference中添加Desktop或者Windows Phone的SDK,会导致在其他平台运行报错。
所以需要在用到特别API的部分添加:
1 if(Windows.Foundation.Metadata.ApiInformation.IsTypePresent("Windows.Phone.UI.Input.HardwareButtons")) 2 Windows.Phone.UI.Input.HardwareButtons.BackPressed += HardwareButtons_BackPressed;