How to install build tools for v141_xp for VC 2017?

I had a similar problem and the reason for that was a not needed VCTargetsPath system variable. After removing it, VS 2017 now sees V141 toolset. I had VS 2017 Community first, maybe that made the problem.


On Visual Studio 2019 this option is deprecated but you can still select it :)

Here is a summary on how to install the toolset:

  • Bring up the Visual Studio installer (Tools -> Get Tools and Features)
  • Select Individual components
  • Select Windows XP support for C++ from the Summary section
  • Click Modify

enter image description here


I am not entirely clear on whether your issue is installing the C++ tools for Windows XP or modifying your project/solution to target that platform. Either way, the following link should help you out.

Here is a summary on how to install the toolset:

  • Bring up the Visual Studio installer (Tools -> Get Tools and Features)
  • Select Desktop development with C++
  • Select Windows XP support for C++ from the Summary section
  • Click Modify

enter image description here

enter image description here