轉自:Visual Studio版本號對應表 - ChrisZZ - 博客園
https://www.cnblogs.com/zjutzz/p/6013783.html
從一個外行角度看,VC/VS有3種版本號,具備一定的迷惑性:(xx表示具體的數字)
MSVC++ xx(VC版本 eg. VC6.0)
_MSC_VER xx
VisualStudio xx(VS版本 eg. VS2012)
對照關系整理如下(更新至2022.3.26):
VC 版本 _MSC_VER VS 版本 MSVC toolset version
VC6.0 1200 VS 6.0
VC7.0 1300 VS2002
VC7.1 1310 VS2003
VC8.0 1400 VS2005 80
VC9.0 1500 VS2008 90
VC10.0 1600 VS2010 100
VC11.0 1700 VS2012 110
VC12.0 1800 VS2013 120
VC14.0 1900 VS2015 140
VC15.0 [1910,1916] VS2017 141
VC16.0 [1920,1929] VS2019 142
VC17.0 [1930,) VS2022 143
refs:
https://cmake.org/cmake/help/latest/variable/MSVC_TOOLSET_VERSION.html
https://docs.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=msvc-160
Greatness is never a given, it must be earned.