Deploy Windows Store App From Command Line

914 Views Asked by At

Often times when I am building medium to large scale applications, I end up writing a powershell script or batch file to build all of my dependent assemblies, etc. Lately I have been working on a windows store app, and the script approach is working just fine, except for one final part. I can't figure out how I can not only build, but also deploy my app to my local machine. I can do it in Visual Studio via this menu option:

deployment!

But that means I have to go to Visual Studio and do it manually which kind of defeats the purpose of an automated build. Does anyone have any clue as to how I can get this 'deploy' functionality from the command line?? Is it possible?

1

There are 1 best solutions below

10
On

Try the same behavior as with sideloading apps:

At the Windows PowerShell prompt, run the following commands, where SampleApp is the path and name of the package file you created (e.g., MySample_1.0.0.0_AnyCPU_Debug.appx):

import-module appx

add-appxpackage “SampleApp”