visual-studio - Windows 8 应用程序部署

标签 visual-studio deployment windows-8 visual-studio-2012

我使用 Visual Studio Express 2012 RC 开发了一个 Windows 8 C# 应用程序。我可以在我的电脑上运行它。但是,我想创建一个可执行文件,以便我的 friend 也可以试用该应用程序。当我单击 bin/Release 文件夹下的 .exe 文件时,它显示:

This application can only run in the context of an app container.

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

最佳答案

参见 here .

You need a developer license to develop and test Metro style apps prior to certifying and deploying through the store. Visual Studio 2012 will automatically request a developer license when it is run for the first time. To get a developer license without Visual Studio run the show-WindowsDeveloperLicenseRegistration function in powershell:

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

PS C:\Windows\system32> Show-WindowsDeveloperLicenseRegistration

For information on developer licenses see: Get a developer license (Metro style apps) To deploy the app, build a package in Visual Studio from the Store.Build Pacakage menu. Build it for local use. Copy the resulting package to the target machine and run the included Add-AppDevPackage.ps1 file. See also Sharing an app package locally. --Rob

关于visual-studio - Windows 8 应用程序部署,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11745179/

相关文章:

windows-8 - WinJS - 防止两次快速按钮按下

windows-7 - 从 Windows 7 开发 Metro UI (Windows 8)

c# - 如何复制 Win8 metro File Picker UI

c# - 如何在 Visual Studio 中更改大括号/圆括号的颜色

c# - 更改 PictureBox 的位置

java - Tomcat7 maven插件部署失败错误

AngularJS web.xml for tomcat servlet config <error-page>

使用 msi API 更改安装路径

c# - 尝试激活 DbContext 时无法解析 Microsoft.EntityFrameworkCore.DbContextOptions 类型的服务

visual-studio - 在 Visual Studio 2008 中查看所有打开的文档是否有键盘快捷键