Windows 8 application deployment

倖福魔咒の 提交于 2019-12-08 01:32:03

问题


I developed a Windows 8 C# application using Visual Studio Express 2012 RC. I can run it on my pc. However, I want to create an executable so that my friends can also try the application. When I click the .exe file under bin/Release folder it says:

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

How can i create an app container manually or using Visual Studio 2012?


回答1:


See 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



来源:https://stackoverflow.com/questions/11745179/windows-8-application-deployment

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!