I could not reproduce your issue with VS2022 Community 17.8.0
Macro values building with v143 toolset (VS2022) -
Macro values building with v142 toolset (VS2019( -
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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.
I could not reproduce your issue with VS2022 Community 17.8.0
Macro values building with v143 toolset (VS2022) -
Macro values building with v142 toolset (VS2019( -