title: How to build and package UWP project with AppService?
body: <p>I have an app composed of three projects:</p>
  
  <ul>
  <li>UWP app</li>
  <li>.NET Framework 4.7.2 console app (Full thrust App service)</li>
  <li>Packaging</li>
  </ul>
  
  <p>They build just fine in VisualStudio in debug and release.</p>
  
  <p>When building using MsBuild 2019 v16.4.2 or publishing with Visual Studio, the two first projects build fine but there is these errors when trying to build the packaging project:</p>
  
  <pre><code>error PRI175 : 0x8007000b - Processing Resources failed with error : An attempt was made to load a program with an incorrect format. [d:\workspace\App_master\Packaging.wapproj]         
  GENERATEPROJECTPRIFILE : error PRI222: 0xdef00001 - Unspecified error occurred. [d:\workspace\App_master\Packaging.wapproj]
  </code></pre>
  
  <p>Here are the flag used with MsBuild: </p>
  
  <pre><code>/p:AppxPackageSigningEnabled=false 
  /p:AppxBundle=Always 
  /p:UapAppxPackageBuildMode=SideloadOnly
  /p:AppxPackageDir="\$(Build.ArtifactStagingDirectory)\AppxPackages\\"
  /p:AppxBundlePlatforms="x64" 
  </code></pre>
  
  <p>All three projects target x64</p>