https://msdn.microsoft.com/library/windows/apps/xaml/dn706236.aspx
安裝好Win10 和Vs2015後調試程序提示
進入Win10設置--->升級與安全--->開發者無選項(Win10 預覽者版10074)
解決方法:
Use gpedit to enable your device
Open a cmd prompt with administrator privileges.
Run Gpedit.msc.
Go to Local Computer Policy > Computer Configuration > Administrative Templates > Windows Components > App Package Deployment
Edit the policies to enable the following:
Allow all trusted apps to install (Enables your device for sideloading apps)
Allows development of Windows Store apps and installing them from an integrated development environment (IDE) (Enables your device for development from Visual Studio)
Use regedit to enable your device
Open a cmd prompt with administrator privileges.
Run regedit.
Set the value of this DWORD to 1:HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock\AllowAllTrustedApps
Set the value of this DWORD to 1:HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock\AllowDevelopmentWithoutDevLicense
Use PowerShell to enable your device
Run Windows PowerShell with administrator privileges.
Run the following command: PS C:\WINDOWS\system32> reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" /t REG_DWORD /f /v "AllowDevelopmentWithoutDevLicense" /d "1"
Run this command too: PS C:\WINDOWS\system32> reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" /t REG_DWORD /f /v "AllowAllTrustedApps" /d "1"