Skip to content

Commit a3ec178

Browse files
committed
Update VS project to v2022
1 parent 6d05c43 commit a3ec178

5 files changed

Lines changed: 23 additions & 16 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#ignore thumbnails created by windows
33
Thumbs.db
44
#Ignore files build by Visual Studio
5+
.vs/
56
*.obj
67
*.pdb
78
*.user

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Releases and continuous builds
7575
Manually building ComparePlus
7676
-------------------------------
7777

78-
1. Open [`comparePlus\projects\2017\ComparePlus.vcxproj`](https://github.com/pnedev/comparePlus/blob/master/projects/2017/ComparePlus.vcxproj)
78+
1. Open [`comparePlus\projects\2022\ComparePlus.vcxproj`](https://github.com/pnedev/comparePlus/blob/master/projects/2022/ComparePlus.vcxproj)
7979
2. Build ComparePlus plugin like a normal Visual Studio project. Available platforms are x86 (Win32) and x64 for Unicode Release and Debug. ARM64 build is also available.
8080
3. CMake config is available and tested for the generators MinGW Makefiles, Visual Studio and NMake Makefiles
8181

appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
version: Build {build}
2-
image: Visual Studio 2017
2+
image: Visual Studio 2022
33

44
environment:
55
matrix:
@@ -18,7 +18,7 @@ before_build:
1818
1919
build:
2020
parallel: true
21-
project: projects\2017\ComparePlus.sln
21+
project: projects\2022\ComparePlus.sln
2222

2323
after_build:
2424
- cd "%APPVEYOR_BUILD_FOLDER%"
Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,38 +30,44 @@
3030
<ProjectGuid>{73C0A930-C2F5-45D2-9795-8EFE62E2F4C6}</ProjectGuid>
3131
<RootNamespace>ComparePlus</RootNamespace>
3232
<Keyword>Win32Proj</Keyword>
33-
<WindowsTargetPlatformVersion>10.0.17763.0</WindowsTargetPlatformVersion>
33+
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
3434
</PropertyGroup>
3535
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
3636
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
3737
<ConfigurationType>DynamicLibrary</ConfigurationType>
3838
<CharacterSet>Unicode</CharacterSet>
39-
<PlatformToolset>v141</PlatformToolset>
39+
<PlatformToolset>v143</PlatformToolset>
40+
<WholeProgramOptimization>true</WholeProgramOptimization>
4041
</PropertyGroup>
4142
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
4243
<ConfigurationType>DynamicLibrary</ConfigurationType>
4344
<CharacterSet>Unicode</CharacterSet>
44-
<PlatformToolset>v141</PlatformToolset>
45+
<PlatformToolset>v143</PlatformToolset>
46+
<WholeProgramOptimization>true</WholeProgramOptimization>
4547
</PropertyGroup>
4648
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="Configuration">
4749
<ConfigurationType>DynamicLibrary</ConfigurationType>
4850
<CharacterSet>Unicode</CharacterSet>
49-
<PlatformToolset>v141</PlatformToolset>
51+
<PlatformToolset>v143</PlatformToolset>
52+
<WholeProgramOptimization>true</WholeProgramOptimization>
5053
</PropertyGroup>
5154
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
5255
<ConfigurationType>DynamicLibrary</ConfigurationType>
5356
<CharacterSet>Unicode</CharacterSet>
54-
<PlatformToolset>v141</PlatformToolset>
57+
<PlatformToolset>v143</PlatformToolset>
58+
<WholeProgramOptimization>true</WholeProgramOptimization>
5559
</PropertyGroup>
5660
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
5761
<ConfigurationType>DynamicLibrary</ConfigurationType>
5862
<CharacterSet>Unicode</CharacterSet>
59-
<PlatformToolset>v141</PlatformToolset>
63+
<PlatformToolset>v143</PlatformToolset>
64+
<WholeProgramOptimization>true</WholeProgramOptimization>
6065
</PropertyGroup>
6166
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="Configuration">
6267
<ConfigurationType>DynamicLibrary</ConfigurationType>
6368
<CharacterSet>Unicode</CharacterSet>
64-
<PlatformToolset>v141</PlatformToolset>
69+
<PlatformToolset>v143</PlatformToolset>
70+
<WholeProgramOptimization>true</WholeProgramOptimization>
6571
</PropertyGroup>
6672
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
6773
<ImportGroup Label="ExtensionSettings">
@@ -143,7 +149,7 @@
143149
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
144150
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
145151
<PrecompiledHeader>NotUsing</PrecompiledHeader>
146-
<WarningLevel>Level4</WarningLevel>
152+
<WarningLevel>EnableAllWarnings</WarningLevel>
147153
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
148154
<MultiProcessorCompilation>true</MultiProcessorCompilation>
149155
<SDLCheck>true</SDLCheck>
@@ -177,7 +183,7 @@ copy "..\..\libs\x86\*.dll" "$(OutDir)libs"</Command>
177183
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
178184
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
179185
<PrecompiledHeader>NotUsing</PrecompiledHeader>
180-
<WarningLevel>Level4</WarningLevel>
186+
<WarningLevel>EnableAllWarnings</WarningLevel>
181187
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
182188
<MultiProcessorCompilation>true</MultiProcessorCompilation>
183189
<SDLCheck>true</SDLCheck>
@@ -210,7 +216,7 @@ copy "..\..\libs\x64\*.dll" "$(OutDir)libs"</Command>
210216
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
211217
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
212218
<PrecompiledHeader>NotUsing</PrecompiledHeader>
213-
<WarningLevel>Level4</WarningLevel>
219+
<WarningLevel>EnableAllWarnings</WarningLevel>
214220
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
215221
<MultiProcessorCompilation>true</MultiProcessorCompilation>
216222
<SDLCheck>true</SDLCheck>
@@ -246,7 +252,7 @@ copy "..\..\libs\arm64\*.dll" "$(OutDir)libs"</Command>
246252
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
247253
<FunctionLevelLinking>true</FunctionLevelLinking>
248254
<PrecompiledHeader>NotUsing</PrecompiledHeader>
249-
<WarningLevel>Level4</WarningLevel>
255+
<WarningLevel>EnableAllWarnings</WarningLevel>
250256
<DebugInformationFormat>
251257
</DebugInformationFormat>
252258
<CompileAs>Default</CompileAs>
@@ -287,7 +293,7 @@ copy "..\..\libs\x86\*.dll" "$(OutDir)libs"</Command>
287293
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
288294
<FunctionLevelLinking>true</FunctionLevelLinking>
289295
<PrecompiledHeader>NotUsing</PrecompiledHeader>
290-
<WarningLevel>Level4</WarningLevel>
296+
<WarningLevel>EnableAllWarnings</WarningLevel>
291297
<DebugInformationFormat>
292298
</DebugInformationFormat>
293299
<CompileAs>Default</CompileAs>
@@ -327,7 +333,7 @@ copy "..\..\libs\x64\*.dll" "$(OutDir)libs"</Command>
327333
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
328334
<FunctionLevelLinking>true</FunctionLevelLinking>
329335
<PrecompiledHeader>NotUsing</PrecompiledHeader>
330-
<WarningLevel>Level4</WarningLevel>
336+
<WarningLevel>EnableAllWarnings</WarningLevel>
331337
<DebugInformationFormat>
332338
</DebugInformationFormat>
333339
<CompileAs>Default</CompileAs>

0 commit comments

Comments
 (0)