Skip to content

Commit 676473a

Browse files
authored
Fix build script (#81)
This commit restores NuGet packages prior to building.
1 parent abe0cc4 commit 676473a

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/build-and-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
uses: microsoft/[email protected]
2727

2828
- name: Update NuGet packages
29-
uses: nuget update
29+
run: nuget restore .\Projects\VisualStudio\maxGUI.sln
3030

3131
- name: Build
3232
working-directory: ${{env.GITHUB_WORKSPACE}}

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,14 @@
1111

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

14-
#if _MSC_VER > 1938
14+
#if _MSC_VER > 1939
1515
MAX_COMPILER_MESSAGE( "Compiling with a newer version of MSVC than max recognizes. Using last known version." );
16+
#elif _MSC_VER >= 1939
17+
// MSVC++ (Visual Studio 2022 / version 17.9)
18+
#define MAX_COMPILER_VERSION_MAJOR 17
19+
#define MAX_COMPILER_VERSION_MINOR 9
1620
#elif _MSC_VER >= 1938
17-
// MCVC++ (Visual Studio 2022 / version 17.8)
21+
// MSVC++ (Visual Studio 2022 / version 17.8)
1822
#define MAX_COMPILER_VERSION_MAJOR 17
1923
#define MAX_COMPILER_VERSION_MINOR 8
2024
#elif _MSC_VER >= 1937

0 commit comments

Comments
 (0)