Skip to content

Commit 7c5149b

Browse files
committed
Use env-var 'PlatformToolset'.
1 parent 90b5d7b commit 7c5149b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/msbuild.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121

2222
- name: Build
2323
working-directory: ${{env.GITHUB_WORKSPACE}}
24-
run: msbuild /m /p:Configuration=${{matrix.BUILD_CONFIGURATION}} /p:Platform=${{matrix.BUILD_PLATFORM}} ${{env.SOLUTION_FILE_PATH}}
24+
run: msbuild /m /p:Configuration=${{matrix.BUILD_CONFIGURATION}} /p:Platform=${{matrix.BUILD_PLATFORM}} /p:PlatformToolset=v143 ${{env.SOLUTION_FILE_PATH}}
2525

2626
# test:
2727
# steps:
2828
# run: start dump1090.exe --config dump1090-ci.cfg --debug Gn --net --logfile dump1090-ci.log
2929
# py.exe -3 tools\SBS_client.py --host localhost --wait 10 --port 30001 raw-out
30-
#
30+
#

src/Dump1090.vcxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,22 @@
3131
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
3232
<ConfigurationType>Application</ConfigurationType>
3333
<UseDebugLibraries>true</UseDebugLibraries>
34-
<PlatformToolset>v143</PlatformToolset>
34+
<PlatformToolset>$(PlatformToolset)</PlatformToolset>
3535
</PropertyGroup>
3636
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
3737
<ConfigurationType>Application</ConfigurationType>
3838
<UseDebugLibraries>false</UseDebugLibraries>
39-
<PlatformToolset>v143</PlatformToolset>
39+
<PlatformToolset>$(PlatformToolset)</PlatformToolset>
4040
</PropertyGroup>
4141
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
4242
<ConfigurationType>Application</ConfigurationType>
4343
<UseDebugLibraries>true</UseDebugLibraries>
44-
<PlatformToolset>v143</PlatformToolset>
44+
<PlatformToolset>$(PlatformToolset)</PlatformToolset>
4545
</PropertyGroup>
4646
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
4747
<ConfigurationType>Application</ConfigurationType>
4848
<UseDebugLibraries>false</UseDebugLibraries>
49-
<PlatformToolset>v143</PlatformToolset>
49+
<PlatformToolset>$(PlatformToolset)</PlatformToolset>
5050
</PropertyGroup>
5151
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
5252
<ImportGroup Label="ExtensionSettings">

0 commit comments

Comments
 (0)