title: How to build TBB using VS2015 x64 from the command line?
body: <p>I want to build Intel Threading Building Blocks from the command line using Visual Studio 2015 x64. I downloaded the <a href="https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb2017_20161128oss_src.tgz" rel="nofollow noreferrer">last stable version</a> from <a href="https://www.threadingbuildingblocks.org/" rel="nofollow noreferrer">https://www.threadingbuildingblocks.org/</a>. </p>
  
  <p>The directory <code>tbb2017_20161128oss\build\vs2012</code> contains besides some other files:</p>
  
  <pre><code>makefile.sln 
  tbb.vcxproj 
  tbbmalloc.vcxproj 
  tbbmalloc_proxy.vcxproj
  </code></pre>
  
  <p>To build the Debug version of TBB I tried the following command in a <code>VS2015 x64 Native Tools Command Prompt</code>:</p>
  
  <pre><code>Devenv makefile.sln /build Debug /project tbb
  </code></pre>
  
  <p>But I get the following error:</p>
  
  <pre><code>Microsoft Visual Studio 2015 Version 14.0.25420.1.
  Copyright (C) Microsoft Corp. All rights reserved.
  1&gt;------ Build started: Project: tbb, Configuration: Debug Win32 ------
  1&gt;C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppBuild.targets(344,5): warning MSB8003: Could not find WindowsSDKDir variable from the registry.  TargetFrameworkVersion or PlatformToolset may be set to an invalid version number.
  1&gt;  generating tbb.def file
  1&gt;C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(172,5): error MSB6006: "cmd.exe" exited with code -1073741515.
  ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
  </code></pre>
  
  <p>The problem here is that the VS2012 files need to be upgraded. When I open the file <code>makefile.sln</code> manually these windows pops up:</p>
  
  <p><a href="https://i.stack.imgur.com/1uD7K.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1uD7K.png" alt="VC Upgrade Message"></a></p>
  
  <p>If I hit the "OK" button and retry <code>env makefile.sln /build Debug /project tbb</code> again everything works fine.</p>
  
  <p>Since I plan to build TBB on several computers this manual task is annoying. Can it be avoided? Is there a way to upgrade a solution from the command line?</p>