I am using Visual Studio 2022, and I installed follow Platform Toolset:
v143 (Visual Studio 2022) , v142 (Visual Studio 2019)
The value of '_MSC_VER' in the c++ code never change enven if I switch from the two toolsets.
It keeps '_MSC_VER= 1938'.
But in QtCreator, add these toolsets to kits and config them as the build tools of the porject. Then when I switch from the two toolsets, '_MSC_VER' in code has the correct value , like:
when use v143 '_MSC_VER= 1938'
when use v143 '_MSC_VER= 1929'
So why the macro '_MSC_VER': value mismatch the PlatformToolset seleced in visual studio 2022 ?
quote: maybe the same in 2019 and 2017.