Windows 8应用程序部署

问题描述:

我使用Visual Studio Express 2012 RC开发了一个Windows 8 C#应用程序。我可以在我的电脑上运行它。但是,我想创建一个可执行文件,以便我的朋友也可以尝试应用程序。当我点击下斌/释放文件夹中的.exe文件,它说:Windows 8应用程序部署

此应用程序只能在一个应用程序容器的上下文中运行。

如何手动创建应用容器或使用Visual Studio 2012?

+0

这会:http://msdn.microsoft.com/en-us/library/windows/apps/hh464929.aspx帮助吗? – 2012-07-31 16:55:43

+0

[如何将Metro应用程序部署到桌面?](http://*.com/questions/7451536/how-to-deploy-a-metro-app-to-the-desktop) – 2015-02-19 19:17:03

请参阅here

在通过商店进行认证和部署之前,您需要开发人员许可证来开发和测试Metro风格的应用程序 。 2012年的Visual Studio 将在第一次运行 时自动请求开发者许可。为了让开发人员许可证没有Visual Studio中运行 显示,WindowsDeveloperLicenseRegistration功能在PowerShell中:

C:\Windows\system32>powershell 
Windows PowerShell Copyright (C) 2012 
Microsoft Corporation. All rights reserved. 

PS C:\Windows\system32> Show-WindowsDeveloperLicenseRegistration 

有关开发者许可 信息,请参阅:Get a developer license (Metro style apps)部署的应用,从Visual Studio中创建一个软件包 Store.Build Pacakage菜单。构建它以供本地使用。将 生成的包复制到目标机器并运行附带的 Add-AppDevPackage.ps1文件。又见Sharing an app package locally. --Rob