title: How do I make MSBuild work with a UWP solution generated from a Unity3D project?
body: <p>So I'm trying to automate the process for building a packaged app from a Unity project and I've hit a roadblock when trying to use MSBuild to build the final app packages.
  In Unity, when you build for UWP, a folder /UWP/ is generated for the project. These contain csharp projects for two .dlls that are required to build the uwp app. </p>
  
  <p>For me, these dlls got generated in a folder for each platform (x86,x64, and ARM), but this is where I hit the roadblock. To build the app packages I use MSBuild(I've also tried with the Developer Command Prompt - same result) with the command.</p>
  
  <pre><code>MSBuild "{Project}.csproj" /p:Configuration=Debug;AppxBundle=Always;AppxBundlePlatforms="x64";OutputPath="AppxPackages"
  </code></pre>
  
  <p>This throws the error</p>
  
  <blockquote>
    <p>"C:\Users\{User}\Desktop\Output\{Project}\{Project}.csproj" (default target) (1) ->
    (BeforeResolveReferences target) -><br>
    C:\Users\{User}\Desktop\Output\{Project}\{Project}.csproj(319,5): error MSB3030: Could not copy the file "{path-to-unity-project}\UWP\Assembly-CSharp\bin\AnyCPU\Debug\Unprocessed\Assembly-CSharp.dll" because it was not found.</p>
  </blockquote>
  
  <p>What is happening here is that MSBuild is attempting to find a dll in a folder "AnyCPU" that simply does not exist.</p>
  
  <p>Is there any way I could tell MSBuild to individually build each platform rather than look for a combined dll, or am I using MSBuild incorrectly?</p>