UnitTests-CommonUtils.vcxproj
1 <?xml version="1.0" encoding="utf-8"?> 2 <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 3 <Import Project="..\..\..\packages\Microsoft.Windows.CppWinRT.2.0.240111.5\build\native\Microsoft.Windows.CppWinRT.props" Condition="Exists('..\..\..\packages\Microsoft.Windows.CppWinRT.2.0.240111.5\build\native\Microsoft.Windows.CppWinRT.props')" /> 4 <PropertyGroup Label="Globals"> 5 <VCProjectVersion>16.0</VCProjectVersion> 6 <ProjectGuid>{8B5CFB38-CCBA-40A8-AD7A-89C57B070884}</ProjectGuid> 7 <Keyword>Win32Proj</Keyword> 8 <RootNamespace>UnitTestsCommonUtils</RootNamespace> 9 <ProjectSubType>NativeUnitTestProject</ProjectSubType> 10 <ProjectName>Common.Utils.UnitTests</ProjectName> 11 </PropertyGroup> 12 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> 13 <PropertyGroup Label="Configuration"> 14 <ConfigurationType>DynamicLibrary</ConfigurationType> 15 <UseOfMfc>false</UseOfMfc> 16 <PlatformToolset>v143</PlatformToolset> 17 <OutDir>$(SolutionDir)$(Platform)\$(Configuration)\tests\UnitTestsCommonUtils\</OutDir> 18 </PropertyGroup> 19 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> 20 <ImportGroup Label="ExtensionSettings"> 21 </ImportGroup> 22 <ImportGroup Label="Shared"> 23 </ImportGroup> 24 <ImportGroup Label="PropertySheets"> 25 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 26 </ImportGroup> 27 <PropertyGroup Label="UserMacros" /> 28 <ItemDefinitionGroup> 29 <ClCompile> 30 <AdditionalIncludeDirectories>..\;..\utils;..\Telemetry;..\..\;..\..\..\deps\;..\..\..\deps\spdlog\include;..\..\..\packages\Microsoft.Windows.ImplementationLibrary.1.0.231216.1\include;$(VCInstallDir)UnitTest\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> 31 <LanguageStandard>stdcpp23</LanguageStandard> 32 <PreprocessorDefinitions>SPDLOG_WCHAR_TO_UTF8_SUPPORT;SPDLOG_HEADER_ONLY;%(PreprocessorDefinitions)</PreprocessorDefinitions> 33 </ClCompile> 34 <Link> 35 <AdditionalLibraryDirectories>$(VCInstallDir)UnitTest\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> 36 <AdditionalDependencies>RuntimeObject.lib;Msi.lib;Shlwapi.lib;%(AdditionalDependencies)</AdditionalDependencies> 37 </Link> 38 </ItemDefinitionGroup> 39 <ItemGroup> 40 <ClCompile Include="pch.cpp"> 41 <PrecompiledHeader Condition="'$(UsePrecompiledHeaders)' != 'false'">Create</PrecompiledHeader> 42 </ClCompile> 43 <ClCompile Include="StringUtils.Tests.cpp" /> 44 <ClCompile Include="ColorUtils.Tests.cpp" /> 45 <ClCompile Include="TimeUtils.Tests.cpp" /> 46 <ClCompile Include="WinApiError.Tests.cpp" /> 47 <ClCompile Include="Serialized.Tests.cpp" /> 48 <ClCompile Include="Json.Tests.cpp" /> 49 <ClCompile Include="OsDetect.Tests.cpp" /> 50 <ClCompile Include="Threading.Tests.cpp" /> 51 <ClCompile Include="ProcessPath.Tests.cpp" /> 52 <ClCompile Include="Window.Tests.cpp" /> 53 <ClCompile Include="GameMode.Tests.cpp" /> 54 <ClCompile Include="Gpo.Tests.cpp" /> 55 <ClCompile Include="MsiUtils.Tests.cpp" /> 56 <ClCompile Include="HttpClient.Tests.cpp" /> 57 <ClCompile Include="ComObjectFactory.Tests.cpp" /> 58 <ClCompile Include="AppMutex.Tests.cpp" /> 59 <ClCompile Include="Elevation.Tests.cpp" /> 60 <ClCompile Include="Exec.Tests.cpp" /> 61 <ClCompile Include="ExcludedApps.Tests.cpp" /> 62 <ClCompile Include="HDropIterator.Tests.cpp" /> 63 <ClCompile Include="LoggerHelper.Tests.cpp" /> 64 <ClCompile Include="ModulesRegistry.Tests.cpp" /> 65 <ClCompile Include="MsWindowsSettings.Tests.cpp" /> 66 <ClCompile Include="Package.Tests.cpp" /> 67 <ClCompile Include="ProcessApi.Tests.cpp" /> 68 <ClCompile Include="ProcessWaiter.Tests.cpp" /> 69 <ClCompile Include="Registry.Tests.cpp" /> 70 <ClCompile Include="Resources.Tests.cpp" /> 71 <ClCompile Include="TestStubs.cpp" /> 72 <ClCompile Include="UnhandledException.Tests.cpp" /> 73 </ItemGroup> 74 <ItemGroup> 75 <ClInclude Include="pch.h" /> 76 <ClInclude Include="resource.h" /> 77 <ClInclude Include="TestHelpers.h" /> 78 </ItemGroup> 79 <ItemGroup> 80 <ResourceCompile Include="UnitTests-CommonUtils.rc" /> 81 </ItemGroup> 82 <ItemGroup> 83 <None Include="packages.config" /> 84 </ItemGroup> 85 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> 86 <ImportGroup Label="ExtensionTargets"> 87 <Import Project="..\..\..\packages\Microsoft.Windows.CppWinRT.2.0.240111.5\build\native\Microsoft.Windows.CppWinRT.targets" Condition="Exists('..\..\..\packages\Microsoft.Windows.CppWinRT.2.0.240111.5\build\native\Microsoft.Windows.CppWinRT.targets')" /> 88 </ImportGroup> 89 <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> 90 <PropertyGroup> 91 <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> 92 </PropertyGroup> 93 <Error Condition="!Exists('..\..\..\packages\Microsoft.Windows.CppWinRT.2.0.240111.5\build\native\Microsoft.Windows.CppWinRT.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\..\packages\Microsoft.Windows.CppWinRT.2.0.240111.5\build\native\Microsoft.Windows.CppWinRT.props'))" /> 94 <Error Condition="!Exists('..\..\..\packages\Microsoft.Windows.CppWinRT.2.0.240111.5\build\native\Microsoft.Windows.CppWinRT.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\..\packages\Microsoft.Windows.CppWinRT.2.0.240111.5\build\native\Microsoft.Windows.CppWinRT.targets'))" /> 95 </Target> 96 </Project>