Get a developer license for windows store app

Developer licenses are free, and you can get as many as you need so that all your test machines have one. If you get one or more developer licenses by using a Microsoft account, you must renew them every 30 days. If you get one or more developer licenses by using a Store account, you must renew them every 90 days, and you might gain other advantages.

When you  run or debug an app  for the first time on a remote machine or on a device that’s directly connected to your development machine, you‘re prompted to download a separate developer license for that machine or device. You can‘t install a developer license on a machine remotely, so you must get the license by using the machine or device itself. After you install a developer license on that remote machine or device, you can install, run, and debug packages that  haven‘t been certified. The developer license on the remote machine doesn’t affect apps that the Store has already certified or desktop apps.

 

Get a developer license by using Visual Studio

When you run Microsoft Visual Studio     on your local machine for the first time, you‘re prompted to get a developer license. Read the license terms, and then choose the I Agree button. In the User Account Control (UAC) dialog box, choose the Yes  button to continue.

After you install a license on a local machine, you won’t be prompted again on that machine unless the license expires (or you remove it) and you try to run an uncertified  Store app or create a project. As long as you have a developer license that hasn‘t expired, you can run uncertified Store apps on your local machine by choosing the F5 key in Visual Studio or Blend for Visual Studio..

 

Note  Your domain administrator can configure your computer to obtain a developer license without  connecting to the Internet provided that your computer  meets certain requirements. See this section below about how to enable a computer to obtain a developer license without having to connect to the internet.

Renew a developer license by using Visual Studio

You can renew a developer license whenever you‘re using the Visual Studio IDE. If you‘re using  Microsoft Visual Studio Express 2013 for Windows, choose Store, Acquire Developer License on the menu bar. If you‘re using a different version of Visual Studio, choose Project, Store, Acquire Developer License on the menu bar.

Get a developer license at a command prompt

If you aren’t using Visual Studio, you can get and manage developer licenses at a  command prompt by running these commands in Windows PowerShell:

  • Show-WindowsDeveloperLicenseRegistration. This command opens a dialog box from which you can get a developer license and install it on the local machine. To run  this command, you must have a valid Microsoft account. You also must run this command in a command prompt with elevated permissions.
  • Get-WindowsDeveloperLicense. This command returns an object that has two properties: ExpirationTime and IsValid. ExpirationTime is a System.DateTime structure that contains the date and time when the license  expires. IsValid is a System.Boolean that indicates whether the license is valid. You can run this command from a command prompt that doesn‘t have elevated permissions.
  • Unregister-WindowsDeveloperLicense. This command warns you that some apps will stop working if you remove the developer license from the local machine. If you choose "Yes" (the default) to confirm that you want to remove the license, the license is removed from the local machine. You must run this command in a command prompt with elevated permissions.
打开PowerShell执行以下命令:
1(查看开发者许可证)  Show-WindowsDeveloperLicenseRegistration
2(获取开发者许可证)  Get-WindowsDeveloperLicense
3(注销开发者许可证)  Unregister-WindowsDeveloperLicense

原文地址 : MSDN

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。