共享应用程序的官方文档在此处。答案分为两部分:
该脚本执行以下步骤。
...
第 2 步:验证您是否拥有开发人员许可证。如果脚本没有找到一个或您当前的许可证已过期,系统会提示您获取一个。要获得开发人员许可证,您必须拥有 Microsoft 帐户。有关详细信息,请参阅获取开发人员许可证(Metro 风格的应用程序)。
在商店接受您的 Metro 风格应用程序之前,您必须对其进行打包并根据某些规则对其进行认证。如果 Windows 应用商店未认证 Metro 风格的应用程序,则该应用程序无法在 Windows 上运行,除非您在本地计算机上安装了开发人员许可证,或者该应用程序是由您的企业旁加载到计算机上的。(此限制不适用于桌面应用程序。)旁加载是安装未通过 Windows 应用商店分发的应用程序的过程,通常用于在应用程序准备销售之前对其进行测试。有关侧载的更多信息,请参阅什么是侧载?Windows 应用商店允许吗?
链接以在没有 Visual Studio 的情况下获取开发人员许可。
在命令提示符处获取开发人员许可证
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:
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
either a non-elevated command prompt or a command prompt with elevated
permissions.
Unregister-WindowsDeveloperLicense. This command warns
you that some Metro style 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. The examples show the basic
PowerShell syntax:
C:\PS> Show-WindowsDeveloperLicenseRegistration
C:\PS> Get-WindowsDeveloperLicense
C:\PS> Unregister-WindowsDeveloperLicense
Alternately, as you mentioned, you can side-load your application. Documentation for that is found here. Further information linking to the msdn on side-loading here.
The main point on the required key is:
Currently, the Consumer Preview and Windows Server 8 Beta are
classified as “enterprise sideloading enabled.” This means that when a
PC is domain joined, it can be configured to accept non-Windows Store
apps from their IT admin. Moving forward, this functionality to
install non-Windows Store Metro style apps will be available for
Windows 8 Enterprise Edition and Windows 8 Server editions.