我使用 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/