Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating app package from command line using msbuild

I can create App Packages from Visual Studio 2013 using the wizard.

enter image description here

The result file is MyProject_Win8_1.1.1.3_x86_x64_arm_bundle.appxupload, which is fine!

I can use the following command to build an .appxupload file for any platform.

msbuild mysolution.sln /property:Configuration="Release" /t:"myproject_Win8" /p:Platform="ARM" /m:4 /t:"Publish"

which leads to generation of MyProject_Win8_1.1.1.3_ARM.appxupload

How can I tell msbuild to build all 3 platforms I need and generate one .appxupload file, which will contain them all?

like image 344
deko Avatar asked Dec 18 '15 13:12

deko


People also ask

How use MSBuild command line?

Use MSBuild at a command prompt To run MSBuild at a command prompt, pass a project file to MSBuild.exe, together with the appropriate command-line options. Command-line options let you set properties, execute specific targets, and set other options that control the build process.

What does MSBuild command do?

Builds the targets in the project file that you specify. If you don't specify a project file, MSBuild searches the current working directory for a file name extension that ends in proj and uses that file. You can also specify a Visual Studio solution file for this argument.

How do I add MSBuild exe to path?

Click on System and Security and then on System. In the left pane, click on Advanced system settings. At the very bottom of the pop up, click on Environment Variables. Edit the Path variable and append the folder's path that contains the MSBuild.exe to it (e.g., ;C:\Windows\Microsoft.NET\Framework64\v4.


1 Answers

Try this command line :

MSBuild mysolution.sln  /p:Configuration=Release;AppxBundle=Always;AppxBundlePlatforms="x86|x64|ARM"
like image 173
ndelabarre Avatar answered Sep 28 '22 07:09

ndelabarre