title: Kicking off a WSL bash-based build from Visual Studio 2015
body: <p>I recently started using the Windows Subsystem for Linux (WSL) to see if my Linux Makefile &amp; arm-none-eabi-gcc based microcontroller project would build "natively" in Windows.  To my surprise, the tool chain and Linux based development tools installed and worked perfectly on first go, without any modifications to the Makefile.</p>
  
  <p>So that got me thinking to try doing all my code editing in Visual Studio using the IDE features while doing the actual build in the Linux &amp; bash environment provided in WSL.</p>
  
  <p>Unfortunately, when specifying a "Build Command Line" in the NMake options for my Visual Studio project, putting in <code>"C:\Windows\System32\bash.exe build.sh"</code> doesn't work because:</p>
  
  <p><code>'C:\Windows\System32\bash.exe' is not recognized as an internal or external command,
  operable program or batch file.</code></p>
  
  <p>This is strange to me because I specified the full path and it couldn't find the WSL bash executable, and also attempting to add it as an "External Tool" doesn't seem to work because the executable doesn't show up in the selection window despite being able to see other executables in the same directory.</p>
  
  <p>Some off topic opinion: If Microsoft can make Visual Studio and WSL work together seamlessly then I would likely switch from my Ubuntu virtual machine setup for a WSL based development environment.</p>