Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows 8 application deployment

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?

like image 978
ipman Avatar asked Feb 26 '26 12:02

ipman


1 Answers

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

like image 179
N_A Avatar answered Mar 01 '26 14:03

N_A



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!