gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 22:25:14 24 4
gpt4 key购买 nike

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

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com