Win10開啓開發者模式

https://msdn.microsoft.com/library/windows/apps/xaml/dn706236.aspx


安裝好Win10 和Vs2015後調試程序提示

Enable developer mode dialog that is displayed in Visual Studio


進入Win10設置--->升級與安全--->開發者無選項(Win10 預覽者版10074)

Go to Settings, choose Update and security and then choose For developers to view your options


解決方法:

    

Use gpedit to enable your device

  1. Open a cmd prompt with administrator privileges.

  2. Run Gpedit.msc.

  3. Go to Local Computer Policy > Computer Configuration > Administrative Templates > Windows Components > App Package Deployment

  4. 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)

Reboot your machine.

Dn706236.wedge(en-us,WIN.10).gifUse regedit to enable your device

  1. Open a cmd prompt with administrator privileges.

  2. Run regedit.

  3. Set the value of this DWORD to 1:HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock\AllowAllTrustedApps

  4. Set the value of this DWORD to 1:HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock\AllowDevelopmentWithoutDevLicense

Dn706236.wedge(en-us,WIN.10).gifUse PowerShell to enable your device

  1. Run Windows PowerShell with administrator privileges.

  2. 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"

  3. 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"


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章