[# VS11] HowTo: Package and deploy an application in Windows 8

image

Hi,

now that the App Store for Windows 8 is a reality, arises the question about how to deploy applications developed withVisual Studio 11 Windows 8. Suppose we have a very simple Grid Application

image

Therefore, if you want to run this interesting application on another computer with Windows 8, probably first thing do is copy the contents of the bin/Debug or bin/Release folder to that computer. However the time to launch the executable you will find the following error:

image

   1: [Window Title]
   2: ...ElBruno.GridApplication01\ElBruno.GridApplication01\
   3: bin\Debug\elbruno.gridapplication01.exe
   4:  
   5: [Content]
   6: ...\ElBruno.GridApplication01\ElBruno.GridApplication01\
   7: bin\Debug\elbruno.gridapplication01.exe
   8:  
   9: This application can only run in the context of an AppContainer.
  10:  
  11:  
  12: [OK]

And now?, because the most daring installed Visual Studio 11 on that computer and recompilarán application. In this way will achieve something that developers have been asking for centuries > > distribute Visual Studio as part of the operating system, clients, servers, mobile phones, etc. But I will the idea… as well, if you want to deploy the application you can do this bundling it and distributing it through 2 channels

  • App Store
  • Local App Packaging

As for the first you have to pay and is not yet active, then let’s see the steps for the 2nd option.

1. In the first place we select project

2 We deploy the contextual menu and select the option [Store / / Create App Package…]

image

3 Select the option to create local package

image

4 We define the location for the generation of the package and the managed versions.

image

5. Now we can already build our package.

6. Once generated the package we will be able to copy the directory "Package" to any Windows 8.

7. Inside the directory "Packages\ < Application Name > _ < Version > _AnyCPU_Debug_Test\" there is a file.BAT that allows to install the application.

8 We launched the bat of installation from a command prompt with administrator permissions

image

9. Ready… our application is now installed and ready to run from the context of Metro Risa

image

Greetings @ Here

The Bruno

About these ads

Deja un comentario

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión / Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión / Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión / Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión / Cambiar )

Conectando a %s