title: How to build Windows Store 8.1 app without Visual Studio?
body: <p>I need this for the build server - I'd like to avoid installing full Visual Studio there.</p>
  <p>I use the newest v12 MSBuild to build the solution with the app. Installing .NET Framework 4.5.1 and Windows 8.1 SDK got me through several compilation errors. With all that installed, right now, I get this:</p>
  <blockquote>
  <p>error MSB4019: The imported project &quot;C:\Program Files
  (x86)\MSBuild\Microsoft\WindowsXaml\v12.0\Microsoft.Windows.UI.Xaml.CSharp.targets&quot;
  was not found. Confirm that the path in the  declaration is
  correct, and that the file exists on disk.</p>
  </blockquote>
  <p>The <em>targets</em> file is present on my development machine with Visual Studio 2013 installed, so I guess it got there with VS 2013. When I tried to paste the whole folder to the build machine (I know, a stupid thing to do), I got the following compilation warnings and errors:</p>
  <blockquote>
  <p>warning MSB3644: The reference assemblies for framework
  &quot;.NETCore,Version=v4.5.1&quot; were not found. To resolve this, install the
  SDK or Targeting Pack for this framework version or retarget your
  application to a version of the framework for which you have the SDK
  or Targeting Pack installed.</p>
  <p>XamlCompiler error WMC1006: Cannot
  resolve Assembly or Windows Metadata file 'System.Runtime.dll'</p>
  <p>Xaml Internal Error error WMC9999: Type universe cannot resolve assembly:
  System.Runtime, Version=4.0.0.0, Culture=neutral,
  PublicKeyToken=b03f5f7f11d50a3a.</p>
  </blockquote>
  <p>Obviously, copying and pasting stuff around is not a way to go. Is there some proper approach to achieve what I want?</p>
  <p><strong>EDIT:</strong> The build machine has Windows Server 2012 installed, not Windows 8.1. Could that be a problem?</p>
  <p><strong>EDIT 2:</strong> After comparing outputs of msbuilds executed both on development machine and build server, I've noticed that the folder <code>C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETCore\v4.5.1</code> is missing from the build machine (there is only 4.5 folder). After pasting it, I got the following error:</p>
  <blockquote>
  <p>CompileXaml error WMC9998: XBF generation failure due to missing
  Windows 8.1 Support, Set property
  &lt;DisableXbfGeneration&gt;true&lt;/DisableXbfGeneration&gt; in your Project file
  and try again.</p>
  </blockquote>
  <p>There is still something missing from the Windows 8.1 toolchain...</p>