From 01ceeef0f959959d6e56fb3b8fd3ef8a917e928b Mon Sep 17 00:00:00 2001 From: General-Snus <53372701+General-Snus@users.noreply.github.com> Date: Mon, 8 Dec 2025 18:45:50 +0100 Subject: [PATCH 1/3] Add PlatformToolset option to MSBuild command --- .github/workflows/msbuild.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml index 6aafe5d3..94b5f444 100644 --- a/.github/workflows/msbuild.yml +++ b/.github/workflows/msbuild.yml @@ -41,4 +41,4 @@ jobs: working-directory: ${{env.GITHUB_WORKSPACE}} # Add additional options to the MSBuild command line here (like platform or verbosity level). # See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference - run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} /p:Platform=x64 /p:CPlusPlusStandard=23 /p:StartupProject=${{env.STARTUP_PROJECT_PATH}} ${{env.SOLUTION_FILE_PATH}} + run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} /p:Platform=x64 /p:CPlusPlusStandard=23 /p:PlatformToolset=v145 /p:StartupProject=${{env.STARTUP_PROJECT_PATH}} ${{env.SOLUTION_FILE_PATH}} From d87fe9fcc9d8179a96d26ecea77ffa91ab2e82a9 Mon Sep 17 00:00:00 2001 From: General-Snus <53372701+General-Snus@users.noreply.github.com> Date: Mon, 8 Dec 2025 19:05:38 +0100 Subject: [PATCH 2/3] Add Visual Studio version specification for MSBuild --- .github/workflows/msbuild.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml index 94b5f444..1e7d8152 100644 --- a/.github/workflows/msbuild.yml +++ b/.github/workflows/msbuild.yml @@ -32,6 +32,8 @@ jobs: - name: Add MSBuild to PATH uses: microsoft/setup-msbuild@v2 + with: + vs-version: '[18.0,)' - name: Restore NuGet packages working-directory: ${{env.GITHUB_WORKSPACE}} From 478836170bf1284468225ee282675fefa5667bc1 Mon Sep 17 00:00:00 2001 From: General-Snus <53372701+General-Snus@users.noreply.github.com> Date: Mon, 8 Dec 2025 19:10:07 +0100 Subject: [PATCH 3/3] Enable MSBuild prerelease version in workflow --- .github/workflows/msbuild.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml index 1e7d8152..295fdf01 100644 --- a/.github/workflows/msbuild.yml +++ b/.github/workflows/msbuild.yml @@ -33,7 +33,7 @@ jobs: - name: Add MSBuild to PATH uses: microsoft/setup-msbuild@v2 with: - vs-version: '[18.0,)' + vs-prerelease: true - name: Restore NuGet packages working-directory: ${{env.GITHUB_WORKSPACE}}