Skip to content

Commit 3d0efc1

Browse files
authored
Update MSVC version and deprecation schedule (#216)
1 parent e95b7f2 commit 3d0efc1

5 files changed

Lines changed: 28 additions & 15 deletions

File tree

‎Code/max/Compiling/Configuration/Compiler/VC.hpp‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,17 @@
1111

1212
#define MAX_COMPILER_MESSAGE( Message ) __pragma( message( Message ) )
1313

14-
#if _MSC_VER > 1943
14+
#if _MSC_VER > 1950
1515
MAX_COMPILER_MESSAGE("Compiling with a newer version of MSVC than max recognizes. Using last known version.");
16+
#elif _MSC_VER >= 1950
17+
// MSVC++ (Visual Studio 2026 / version 18.2)
18+
#define MAX_COMPILER_VERSION_MAJOR 18
19+
#define MAX_COMPILER_VERSION_MINOR 2
20+
// TODO: I missed 18.0 and 18.1. Find what their _MSC_VER was. Maybe they all share 1950? This might make sense because they're all MSVC Build Tools 14.50
21+
#elif _MSC_VER >= 1944
22+
// MSVC++ (Visual Studio 2022 / version 17.14)
23+
#define MAX_COMPILER_VERSION_MAJOR 17
24+
#define MAX_COMPILER_VERSION_MINOR 14
1625
#elif _MSC_VER >= 1943
1726
// MSVC++ (Visual Studio 2022 / version 17.13)
1827
#define MAX_COMPILER_VERSION_MAJOR 17

‎Docs/DeprecationSchedule.md‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,12 @@
3131

3232
|MSVC version |Release date|max deprecation date|Adds support for |
3333
|------------------|-----------:|-------------------:|----------------------------------------------------|
34-
|MSVC 17.13.x |Feb 11, 2025| Current| |
35-
|MSVC 17.9.x |Feb 13, 2024| Fab 11, 2030| |
34+
|MSVC 18.2.x |Jan 13, 2026| Current| |
35+
|MSVC 18.1.x |Dec 9, 2025| Jan 13, 2031| |
36+
|MSVC 18.0.x |Nov 11, 2025| Dec 9, 2030| |
37+
|MSVC 17.14.x |May 21, 2025| Nov 11, 2030| |
38+
|MSVC 17.13.x |Feb 11, 2025| May 21, 2025| |
39+
|MSVC 17.9.x |Feb 13, 2024| Feb 11, 2030| |
3640
|MSVC 17.8.x |Nov 14, 2023| Feb 13, 2029| |
3741
|MSVC 17.7.x |Aug 8, 2023| Nov 14, 2028| |
3842
|MSVC 17.6.x |May 16, 2023| Aug 8, 2028| |

‎Projects/VisualStudio/max/max.vcxproj‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -457,26 +457,26 @@
457457
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
458458
<ConfigurationType>StaticLibrary</ConfigurationType>
459459
<UseDebugLibraries>true</UseDebugLibraries>
460-
<PlatformToolset>v143</PlatformToolset>
460+
<PlatformToolset>v145</PlatformToolset>
461461
<CharacterSet>Unicode</CharacterSet>
462462
</PropertyGroup>
463463
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
464464
<ConfigurationType>StaticLibrary</ConfigurationType>
465465
<UseDebugLibraries>false</UseDebugLibraries>
466-
<PlatformToolset>v143</PlatformToolset>
466+
<PlatformToolset>v145</PlatformToolset>
467467
<WholeProgramOptimization>true</WholeProgramOptimization>
468468
<CharacterSet>Unicode</CharacterSet>
469469
</PropertyGroup>
470470
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
471471
<ConfigurationType>StaticLibrary</ConfigurationType>
472472
<UseDebugLibraries>true</UseDebugLibraries>
473-
<PlatformToolset>v143</PlatformToolset>
473+
<PlatformToolset>v145</PlatformToolset>
474474
<CharacterSet>Unicode</CharacterSet>
475475
</PropertyGroup>
476476
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
477477
<ConfigurationType>StaticLibrary</ConfigurationType>
478478
<UseDebugLibraries>false</UseDebugLibraries>
479-
<PlatformToolset>v143</PlatformToolset>
479+
<PlatformToolset>v145</PlatformToolset>
480480
<WholeProgramOptimization>true</WholeProgramOptimization>
481481
<CharacterSet>Unicode</CharacterSet>
482482
</PropertyGroup>

‎Projects/VisualStudio/maxAutomatedTests/maxAutomatedTests.vcxproj‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,26 +64,26 @@
6464
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
6565
<ConfigurationType>Application</ConfigurationType>
6666
<UseDebugLibraries>true</UseDebugLibraries>
67-
<PlatformToolset>v143</PlatformToolset>
67+
<PlatformToolset>v145</PlatformToolset>
6868
<CharacterSet>Unicode</CharacterSet>
6969
</PropertyGroup>
7070
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
7171
<ConfigurationType>Application</ConfigurationType>
7272
<UseDebugLibraries>false</UseDebugLibraries>
73-
<PlatformToolset>v143</PlatformToolset>
73+
<PlatformToolset>v145</PlatformToolset>
7474
<WholeProgramOptimization>true</WholeProgramOptimization>
7575
<CharacterSet>Unicode</CharacterSet>
7676
</PropertyGroup>
7777
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
7878
<ConfigurationType>Application</ConfigurationType>
7979
<UseDebugLibraries>true</UseDebugLibraries>
80-
<PlatformToolset>v143</PlatformToolset>
80+
<PlatformToolset>v145</PlatformToolset>
8181
<CharacterSet>Unicode</CharacterSet>
8282
</PropertyGroup>
8383
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
8484
<ConfigurationType>Application</ConfigurationType>
8585
<UseDebugLibraries>false</UseDebugLibraries>
86-
<PlatformToolset>v143</PlatformToolset>
86+
<PlatformToolset>v145</PlatformToolset>
8787
<WholeProgramOptimization>true</WholeProgramOptimization>
8888
<CharacterSet>Unicode</CharacterSet>
8989
</PropertyGroup>

‎Projects/VisualStudio/maxManualTests/maxManualTests.vcxproj‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,26 +37,26 @@
3737
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
3838
<ConfigurationType>Application</ConfigurationType>
3939
<UseDebugLibraries>true</UseDebugLibraries>
40-
<PlatformToolset>v143</PlatformToolset>
40+
<PlatformToolset>v145</PlatformToolset>
4141
<CharacterSet>Unicode</CharacterSet>
4242
</PropertyGroup>
4343
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
4444
<ConfigurationType>Application</ConfigurationType>
4545
<UseDebugLibraries>false</UseDebugLibraries>
46-
<PlatformToolset>v143</PlatformToolset>
46+
<PlatformToolset>v145</PlatformToolset>
4747
<WholeProgramOptimization>true</WholeProgramOptimization>
4848
<CharacterSet>Unicode</CharacterSet>
4949
</PropertyGroup>
5050
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
5151
<ConfigurationType>Application</ConfigurationType>
5252
<UseDebugLibraries>true</UseDebugLibraries>
53-
<PlatformToolset>v143</PlatformToolset>
53+
<PlatformToolset>v145</PlatformToolset>
5454
<CharacterSet>Unicode</CharacterSet>
5555
</PropertyGroup>
5656
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
5757
<ConfigurationType>Application</ConfigurationType>
5858
<UseDebugLibraries>false</UseDebugLibraries>
59-
<PlatformToolset>v143</PlatformToolset>
59+
<PlatformToolset>v145</PlatformToolset>
6060
<WholeProgramOptimization>true</WholeProgramOptimization>
6161
<CharacterSet>Unicode</CharacterSet>
6262
</PropertyGroup>

0 commit comments

Comments
 (0)