Skip to content

Commit f2dc264

Browse files
Update sample solution and project to VS2022, drop 32-bit platform (#20)
* Initial plan * Update sample solution and project to VS2022, drop 32-bit platform Co-authored-by: SergiusTheBest <4660722+SergiusTheBest@users.noreply.github.com> * Keep old general requirements, update only samples section to VS2022 Co-authored-by: SergiusTheBest <4660722+SergiusTheBest@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: SergiusTheBest <4660722+SergiusTheBest@users.noreply.github.com>
1 parent a05df3e commit f2dc264

File tree

3 files changed

+7
-79
lines changed

3 files changed

+7
-79
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ void ReleaseMyDriverEnvironment()
293293
- Use it for teardown steps that are expensive or should only happen once per test session.
294294

295295
# Samples
296-
There is a [samples](samples) folder that demonstrates usage of KmTest unit testing framework. To compile it you need Visual Studio 2015 and WDK10.
296+
There is a [samples](samples) folder that demonstrates usage of KmTest unit testing framework. To compile it you need Visual Studio 2022 and WDK10.
297297

298298
# License
299299
KmTest is licensed under the [MPL version 2.0](http://mozilla.org/MPL/2.0/). You can freely use it in your commercial or opensource software.

samples/CalcTest/CalcTest.vcxproj

Lines changed: 4 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<Project DefaultTargets="Build" ToolsVersion="17.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<ItemGroup Label="ProjectConfigurations">
4-
<ProjectConfiguration Include="Debug|Win32">
5-
<Configuration>Debug</Configuration>
6-
<Platform>Win32</Platform>
7-
</ProjectConfiguration>
8-
<ProjectConfiguration Include="Release|Win32">
9-
<Configuration>Release</Configuration>
10-
<Platform>Win32</Platform>
11-
</ProjectConfiguration>
124
<ProjectConfiguration Include="Debug|x64">
135
<Configuration>Debug</Configuration>
146
<Platform>x64</Platform>
@@ -24,37 +16,21 @@
2416
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
2517
<MinimumVisualStudioVersion>12.0</MinimumVisualStudioVersion>
2618
<Configuration>Debug</Configuration>
27-
<Platform Condition="'$(Platform)' == ''">Win32</Platform>
19+
<Platform Condition="'$(Platform)' == ''">x64</Platform>
2820
<ProjectName>CalcTest</ProjectName>
2921
<WindowsTargetPlatformVersion>$(LatestTargetPlatformVersion)</WindowsTargetPlatformVersion>
3022
</PropertyGroup>
3123
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
32-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
33-
<TargetVersion>Windows7</TargetVersion>
34-
<UseDebugLibraries>true</UseDebugLibraries>
35-
<PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset>
36-
<ConfigurationType>Driver</ConfigurationType>
37-
<DriverType>WDM</DriverType>
38-
<SupportsPackaging>false</SupportsPackaging>
39-
</PropertyGroup>
40-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
41-
<TargetVersion>Windows7</TargetVersion>
42-
<UseDebugLibraries>false</UseDebugLibraries>
43-
<PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset>
44-
<ConfigurationType>Driver</ConfigurationType>
45-
<DriverType>WDM</DriverType>
46-
<SupportsPackaging>false</SupportsPackaging>
47-
</PropertyGroup>
4824
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
49-
<TargetVersion>Windows7</TargetVersion>
25+
<TargetVersion>Windows10</TargetVersion>
5026
<UseDebugLibraries>true</UseDebugLibraries>
5127
<PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset>
5228
<ConfigurationType>Driver</ConfigurationType>
5329
<DriverType>WDM</DriverType>
5430
<SupportsPackaging>false</SupportsPackaging>
5531
</PropertyGroup>
5632
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
57-
<TargetVersion>Windows7</TargetVersion>
33+
<TargetVersion>Windows10</TargetVersion>
5834
<UseDebugLibraries>false</UseDebugLibraries>
5935
<PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset>
6036
<ConfigurationType>Driver</ConfigurationType>
@@ -69,18 +45,6 @@
6945
</ImportGroup>
7046
<PropertyGroup Label="UserMacros" />
7147
<PropertyGroup />
72-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
73-
<DebuggerFlavor>DbgengKernelDebugger</DebuggerFlavor>
74-
<OutDir>../../bin/$(PlatformShortName)-$(Configuration)/</OutDir>
75-
<IntDir>../../obj/$(PlatformShortName)-$(Configuration)/</IntDir>
76-
<EnableInf2cat>false</EnableInf2cat>
77-
</PropertyGroup>
78-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
79-
<DebuggerFlavor>DbgengKernelDebugger</DebuggerFlavor>
80-
<OutDir>../../bin/$(PlatformShortName)-$(Configuration)/</OutDir>
81-
<IntDir>../../obj/$(PlatformShortName)-$(Configuration)/</IntDir>
82-
<EnableInf2cat>false</EnableInf2cat>
83-
</PropertyGroup>
8448
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
8549
<DebuggerFlavor>DbgengKernelDebugger</DebuggerFlavor>
8650
<OutDir>../../bin/$(PlatformShortName)-$(Configuration)/</OutDir>
@@ -93,32 +57,6 @@
9357
<IntDir>../../obj/$(PlatformShortName)-$(Configuration)/</IntDir>
9458
<EnableInf2cat>false</EnableInf2cat>
9559
</PropertyGroup>
96-
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
97-
<ClCompile>
98-
<PrecompiledHeader>Use</PrecompiledHeader>
99-
<AdditionalIncludeDirectories>../../include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
100-
</ClCompile>
101-
<PostBuildEvent />
102-
<PostBuildEvent>
103-
<Command>copy /Y "*.cmd" "$(TargetDir)"</Command>
104-
</PostBuildEvent>
105-
<DriverSign>
106-
<FileDigestAlgorithm>SHA256</FileDigestAlgorithm>
107-
</DriverSign>
108-
</ItemDefinitionGroup>
109-
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
110-
<ClCompile>
111-
<PrecompiledHeader>Use</PrecompiledHeader>
112-
<AdditionalIncludeDirectories>../../include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
113-
</ClCompile>
114-
<PostBuildEvent />
115-
<PostBuildEvent>
116-
<Command>copy /Y "*.cmd" "$(TargetDir)"</Command>
117-
</PostBuildEvent>
118-
<DriverSign>
119-
<FileDigestAlgorithm>SHA256</FileDigestAlgorithm>
120-
</DriverSign>
121-
</ItemDefinitionGroup>
12260
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
12361
<ClCompile>
12462
<PrecompiledHeader>Use</PrecompiledHeader>
@@ -154,8 +92,6 @@
15492
<ClCompile Include="MulTest.cpp" />
15593
<ClCompile Include="SubTest.cpp" />
15694
<ClCompile Include="StdAfx.cpp">
157-
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
158-
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
15995
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
16096
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
16197
</ClCompile>

samples/Samples.sln

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,22 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 14
4-
VisualStudioVersion = 14.0.24720.0
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.0.31903.59
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CalcTest", "CalcTest\CalcTest.vcxproj", "{61C9C5D4-03B3-42C3-9921-F2BD1B4413F4}"
77
EndProject
88
Global
99
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1010
Debug|x64 = Debug|x64
11-
Debug|x86 = Debug|x86
1211
Release|x64 = Release|x64
13-
Release|x86 = Release|x86
1412
EndGlobalSection
1513
GlobalSection(ProjectConfigurationPlatforms) = postSolution
1614
{61C9C5D4-03B3-42C3-9921-F2BD1B4413F4}.Debug|x64.ActiveCfg = Debug|x64
1715
{61C9C5D4-03B3-42C3-9921-F2BD1B4413F4}.Debug|x64.Build.0 = Debug|x64
1816
{61C9C5D4-03B3-42C3-9921-F2BD1B4413F4}.Debug|x64.Deploy.0 = Debug|x64
19-
{61C9C5D4-03B3-42C3-9921-F2BD1B4413F4}.Debug|x86.ActiveCfg = Debug|Win32
20-
{61C9C5D4-03B3-42C3-9921-F2BD1B4413F4}.Debug|x86.Build.0 = Debug|Win32
21-
{61C9C5D4-03B3-42C3-9921-F2BD1B4413F4}.Debug|x86.Deploy.0 = Debug|Win32
2217
{61C9C5D4-03B3-42C3-9921-F2BD1B4413F4}.Release|x64.ActiveCfg = Release|x64
2318
{61C9C5D4-03B3-42C3-9921-F2BD1B4413F4}.Release|x64.Build.0 = Release|x64
2419
{61C9C5D4-03B3-42C3-9921-F2BD1B4413F4}.Release|x64.Deploy.0 = Release|x64
25-
{61C9C5D4-03B3-42C3-9921-F2BD1B4413F4}.Release|x86.ActiveCfg = Release|Win32
26-
{61C9C5D4-03B3-42C3-9921-F2BD1B4413F4}.Release|x86.Build.0 = Release|Win32
27-
{61C9C5D4-03B3-42C3-9921-F2BD1B4413F4}.Release|x86.Deploy.0 = Release|Win32
2820
EndGlobalSection
2921
GlobalSection(SolutionProperties) = preSolution
3022
HideSolutionNode = FALSE

0 commit comments

Comments
 (0)