发布时间:2012-12-14 15:31
分类名称:Win8 store
From MSDN
A developer license for Windows 8 lets you install, develop, test, and evaluate Windows Store apps before the Windows Store tests and certifies them. Developer licenses are free, and you can get as many as you need if you already have a Microsoft account. You don't need a Store account to get a developer license, but there might be advantages to having this kind of account. For example, you qualify for a longer developer license if you have a Windows Store account.
Before the Store accepts your Windows Store app, you must package it and get it certified according to certain rules. If the Windows Store hasn't certified a Windows Store app, the app can't run on Windows unless you have a developer license installed on the local machine or the app was sideloaded onto the machine by your enterprise. (This restriction doesn't apply to desktop apps.) Sideloading is the process of installing apps that were not distributed through the Windows Store, usually for testing an app before it is ready for sale. For more info on sideloading, see What is sideloading? Does the Windows Store allow it?
The license is provided on a per-machine basis and for a fixed amount of time. After the developer license on your local machine expires, you won't be able to run uncertified apps but you can continue to run desktop apps or Windows Store apps that were sideloaded onto the machine.
When you run or debug a Windows Store 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. Because you can't install a developer license on a machine remotely, you must use the machine or device itself to get the license. 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 Windows Store has already certified or desktop apps.
Getting a developer license through Visual Studio
When you run Microsoft Visual Studio 2012 on your local machine for the first time, you are prompted to obtain a developer license. Read the license terms, and then click I Agree. In the User Account Control (UAC) dialog box, click Yes 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 Windows Store app or create a project. You can run uncertified Windows Store apps on your local machine by pressing the F5 key in Microsoft Visual Studio or Blend for Microsoft Visual Studio 2012 for Windows 8.
You can renew your developer license any time you are using the Visual Studio IDE. If you are using Microsoft Visual Studio Express 2012 for Windows 8, click Store > Acquire Developer License. If you are using a non-Express version of Visual Studio 2012, click Project> Store > Acquire Developer License.
Getting a developer license at a command prompt
If you aren't using Visual Studio 2012, you can get and manage developer licenses at a command prompt by running these commands in Windows PowerShell:
The examples show the basic PowerShell syntax:
C:\PS> Show-WindowsDeveloperLicenseRegistration
C:\PS> Get-WindowsDeveloperLicense
C:\PS> Unregister-WindowsDeveloperLicense
Fraudulent use of your license
Microsoft can detect fraudulent use of a developer license on a registered machine. If Microsoft detects fraudulent use or another violation of the software license terms, we might revoke your developer license. The monitoring process helps ensure the overall health of the app marketplace.
Microsoft doesn't monitor the use of apps that the Windows Store has certified. Microsoft collects analytics for apps sold in the Store and provides those analytics to the developers who created those apps. For more info, see the software license terms for your edition of Windows.