Share via


Create an app package at the command prompt

 

Applies to Windows and Windows Phone

You can create an app package by running MSBuild at a Visual Studio command prompt or by using Team Foundation Build.

Creating an app package at the Visual Studio command prompt

To create an app package, open a Visual Studio command prompt, and then build the app project by using MSBuild. If you don’t specify any additional flags or targets, the MSBuild tool creates the app package in the same location as the other build output of the project. By default, that output appears in a project-specific sub-folder. For example, you could build an app by opening a Visual Studio command prompt and then, at the command line, specify the following:

MSBuild MyProject.csproj /p:OutDir=C:\builds\droplocation\

The app package and other build output would then be created in the following location:

C:\builds\droplocation\MyProject\

You can override the project-specific folder behavior by specifying the following.

/p:GenerateProjectSpecificOutputFolder=false

Creating an app package by using Team Foundation Build

For more information about how to use Team Foundation Build, see Build and test a Windows Store app using Team Foundation Build.