title: How can I build an existing Windows-only Visual Studio project from Bash using WSL
body: <p>I have an existing C++ project that I've configured and built in Visual Studio. This project's only target is Windows, no other platforms. I'm using Bash in WSL to launch the executable.</p>
  
  <p>I prefer to develop in Visual Code (not Visual Studio). I prefer to build and launch applications through Bash (strong Linux background).</p>
  
  <p>Right now, my development workflow is:</p>
  
  <ol>
  <li>Edit code in VS Code</li>
  <li>Switch to Visual studio and click the build button</li>
  <li>Switch to Bash and execute the built program</li>
  </ol>
  
  <p>Since I only keep Visual Studio open for building, I would much prefer to build by command line through Bash.</p>
  
  <p>My naive approach was to use an open source tool to convert the Visual Studio project file into a CMake file. Then cmake &amp; make from Bash, but I stopped when I started encountering errors looking for windows.h (maybe I just need to add some windows include paths to my include_path).</p>
  
  <p>I'm not sure what the best way to go about this would be. Any suggestions would be appreciated!</p>