title: Generate UWP .appxupload from command line VS15/W10
body: <p>We're having a build issue while building our UWP application and would love some ideas or if you have, solutions to our headaches!</p>
  
  <p>Background:</p>
  
  <p>We want to have a CI server generate a .appxupload file for store submission. This we have previously done using this command:</p>
  
  <pre><code>msbuild.exe App.sln /t:Rebuild /p:Configuration=Release /m 
  </code></pre>
  
  <p><strong>HOWEVER</strong>, this is no longer generating an appxupload file. But it is successful in generating appxbundles.</p>
  
  <p><strong>Our setup</strong>:</p>
  
  <ul>
  <li>VisualStudio 2015 update 2</li>
  <li>appxupload is what we want</li>
  <li>AppxBundle is set as Always</li>
  <li>AppxPackageIsForStore is set to True</li>
  <li>The app is a minimum application. All I've done is: New Solution -> Blank -> Generate Store package from VS</li>
  </ul>
  
  <p><strong>What works</strong>:</p>
  
  <ul>
  <li>Generating appxbundle files using command line</li>
  <li>Generating appxupload files using Visual Studio (right click project -> Store)</li>
  </ul>
  
  <p><strong>But... Have you tried...?</strong></p>
  
  <p>Maybe, we've done a lot of searching around and tried things mentioned in a lot of them.
  Some of the stuff we've read and tried includes:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/32728729/appxupload-package-not-being-generated-only-test-package-is-being-generated">appxupload package not being generated. Only test package is being generated</a></li>
  <li><a href="https://stackoverflow.com/questions/32329223/how-to-build-windows-8-1-app-for-store-appxupload-in-powershell">How to build Windows 8.1 app for Store (appxupload) in PowerShell?</a></li>
  <li><a href="https://www.suchan.cz/2015/09/building-windows-store-appxupload-packages-using-powershell/" rel="nofollow noreferrer">https://www.suchan.cz/2015/09/building-windows-store-appxupload-packages-using-powershell/</a></li>
  <li><a href="https://stackoverflow.com/questions/36051980/how-to-generate-appxupload-file">How to generate .appxupload file?</a></li>
  <li><a href="https://stackoverflow.com/questions/33688321/how-to-build-windows-10-appxuploadready-to-submit-to-store-package-by-command">How to build Windows 10 appxupload(ready to submit to store) package by command line</a></li>
  <li><a href="https://stackoverflow.com/questions/34356517/creating-app-package-from-command-line-using-msbuild">Creating app package from command line using msbuild</a></li>
  </ul>
  
  <p>These are the different commands we've tried to generate an appxupload file.
  All of them work and generate three appx files and one appxbundle. But none generate the wanted appxupload :(</p>
  
  <pre><code>msbuild App.sln /p:Configuration=Release;AppxBundle=Always;OutDir=C:/TEMP;BuildAppxUploadPackageForUap=true
  
  msbuild App.sln /p:Configuration=Release;AppxBundle=Always /p:BuildAppxUploadPackageForUap=true 
  
  msbuild App.sln /p:Configuration=Release;AppxBundle=Always /p:BuildAppxUploadPackageForUap=True /p:AppxPackageIsForStore=True
  
  MSBuild App.sln /p:Configuration=Release;AppxBundle=Always;AppxBundlePlatforms="x86|x64|ARM"
  
  msbuild App.sln /t:Build /p:Configuration=Release /v:q /nologo
  
  msbuild App.sln /t:Build /p:Configuration=Release /p:AppxPackageIsForStore=true /v:q /nologo
  
  msbuild App.sln /t:Build /p:Configuration=Release /p:BuildAppxUploadPackageForUap=true /v:q /nologo
  
  msbuild App.sln /t:Build /p:Configuration=Release /p:AppxPackageIsForStore=true /p:BuildAppxUploadPackageForUap=true /v:q /nologo
  </code></pre>
  
  <p>I really hope someone will find this an interesting issue and come with anything that will lead us towards an solution!</p>
  
  <p>THANK YOU in advance :)</p>