The IDE itself

Name Ver Claimed
97 5 95/NT4 and up
6.0 6 95/NT4SP3 and up
.NET (2002) 7 NT4SP6a/2KSP2/XP
.NET 2003 7.1 98/NT4SP6a/2K/XP/2003
2005 8 2KSP4/XPSP2/XPx64/2003SP1/Vista
2008 9 XPSP2/2003SP1/Vista/2008
2010 10 XPSP2/2003SP2/2003R2/VistaSP2/2008SP2/7/2008R2
2012 11 7/8/2008R2/2012
2013 12 7SP1/8/8.1/2008R2SP1/2012/2012R2
2015 14 7SP1/8/8.1/1507/2008R2SP1/2012/2012R2
2017 15 7SP1/8.1/1507/2012R2/2016
2019 16 7SP1/8.1/1703/21H2/2012R2/2016/2019
2022 17 10/11/2016/2019/2022

Notes

A review claimed that VS2002 can be installed on 9x.

MS claimed that VS2022 supports "Windows 10/11 minimum supported OS version or higher". At the time of VS2022's release (20211108), supported versions are 1909+ for Win10 and all versions of Win11.

Targeting

Visual C++

The last platform toolset that supports targeting XP is the v141 toolset from VS 2017. It can still be installed and used in VS 2019, but can't be used in VS 2022. The last vcredist that works on XP shipped in VS 2019 version 16.7, and has a file version starting with 14.27. Source

However, according to abbodi1406, the last version to support XP is 14.28.29213.0.

.NET Framework / .NET Core

See the own pages of .NET Framework and .NET Core for OS support of these frameworks.

Name Ver Supported .NET Framework versions Supported .NET Core versions
2017 15 4.7, 4.6.2, 4.6.1, 4.6, 4.5.2, 3.5 2.0, 1.1, 1.0
2019 16 4.8, 4.7.2, 4.7.1, 4.7, 4.6.2, 4.6.1, 4.6, 4.5.2, 4.5.1, 4.5, 4.0 5, 3.1, 3.0, 2.2, 2.1, 1.1
2022 17 4.8.1, 4.8, 4.7.2, 4.7.1, 4.7, 4.6.2 8.0 Preview, 7.0, 6.0

Older versions don't have the supported .NET Framework / .NET Core versions listed officially.

Microsoft provides SDKs (also called "developer packs" or "targeting packs") that allow older VS versions such as 2015 to target newer versions of .NET Framework / .NET Core. The reverse is also true; I tried installing .NET Framework 4.6.1 targeting pack, and it showed up in VS2022.