2

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?

ipman
  • 1,212
  • 2
  • 21
  • 29
  • Would this: http://msdn.microsoft.com/en-us/library/windows/apps/hh464929.aspx help? – Wouter de Kort Jul 31 '12 at 16:55
  • possible duplicate of [How to deploy a Metro App to the Desktop?](http://stackoverflow.com/questions/7451536/how-to-deploy-a-metro-app-to-the-desktop) –  Feb 19 '15 at 19:17

1 Answers1

9

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

N_A
  • 19,799
  • 4
  • 52
  • 98