visual-studiovisual-studio-2015visual-studio-2017visual-studio-2017-build-tools

Setting up new PC. Need to build VS2015 C++ code. Must I install VS2015?


I'm setting up a new PC and want to install as few versions of Visual Studio as possible. My requirement is that I must still be able to build VS2015 projects as 2015 -- that is, without updating the toolset of the projects

On my old PC, I can build VS2015 code in VS2017 without upgrading the toolset. But I don't know if that is because I already had VS2015 installed when I added VS2017 or if VS2017 can just build as 2015 code by itself without upgrading the projects

So what version of Visual Studio must I start with on the new PC? VS2017 or VS2015?

I realize I can go back and install 2015 afterwards but I'd like to go in order, if possible.


Solution

  • I'm 99% sure that you can install VS15 build tools in VS17! (99% because I've recently updated to VS19 and you certainly can there and, IIRC, it was the same for VS17).

    After 'default' installation of VS17, you can then reopen "Visual Studio Installer" to modify the components installed: go to the "Individual Components" tab and scroll down until you come across "MSVC v140 - VS 2015 C++ build tools (v14.00)" and check that.

    You may also need similar "v140" special packs if your projects use stuff like MFC or ATL - these are located in the same list, further down.