/ src / common / UnitTests-CommonLib / UnitTests-CommonLib.vcxproj
UnitTests-CommonLib.vcxproj
 1  <?xml version="1.0" encoding="utf-8"?>
 2  <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
 3    <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
 4    <Import Project="$(RepoRoot)packages\Microsoft.Windows.CppWinRT.2.0.240111.5\build\native\Microsoft.Windows.CppWinRT.props" Condition="Exists('$(RepoRoot)packages\Microsoft.Windows.CppWinRT.2.0.240111.5\build\native\Microsoft.Windows.CppWinRT.props')" />
 5    <PropertyGroup Label="Globals">
 6      <VCProjectVersion>16.0</VCProjectVersion>
 7      <ProjectGuid>{1A066C63-64B3-45F8-92FE-664E1CCE8077}</ProjectGuid>
 8      <Keyword>Win32Proj</Keyword>
 9      <RootNamespace>UnitTestsCommonLib</RootNamespace>
10      <ProjectSubType>NativeUnitTestProject</ProjectSubType>
11      <ProjectName>Common.Lib.UnitTests</ProjectName>
12    </PropertyGroup>
13    <PropertyGroup Label="Configuration">
14      <ConfigurationType>DynamicLibrary</ConfigurationType>
15      <UseOfMfc>false</UseOfMfc>
16      
17      <OutDir>$(SolutionDir)$(Platform)\$(Configuration)\tests\UnitTestsCommonLib\</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>..\;..\Telemetry;..\..\;$(VCInstallDir)UnitTest\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
31      </ClCompile>
32      <Link>
33        <AdditionalLibraryDirectories>$(VCInstallDir)UnitTest\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
34        <AdditionalDependencies>RuntimeObject.lib;%(AdditionalDependencies)</AdditionalDependencies>
35      </Link>
36    </ItemDefinitionGroup>
37    <ItemGroup>
38      <ClCompile Include="UnitTestsVersionHelper.cpp" />
39      <ClCompile Include="pch.cpp">
40        <PrecompiledHeader Condition="'$(UsePrecompiledHeaders)' != 'false'">Create</PrecompiledHeader>
41      </ClCompile>
42      <ClCompile Include="Settings.Tests.cpp" />
43    </ItemGroup>
44    <ItemGroup>
45      <ClInclude Include="pch.h" />
46      <ClInclude Include="resource.h" />
47    </ItemGroup>
48    <ItemGroup>
49      <ProjectReference Include="..\SettingsAPI\SettingsAPI.vcxproj">
50        <Project>{6955446d-23f7-4023-9bb3-8657f904af99}</Project>
51      </ProjectReference>
52    </ItemGroup>
53    <ItemGroup>
54      <ResourceCompile Include="UnitTests-CommonLib.rc" />
55    </ItemGroup>
56    <ItemGroup>
57      <None Include="packages.config" />
58    </ItemGroup>
59    <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
60    <ImportGroup Label="ExtensionTargets">
61      <Import Project="$(RepoRoot)packages\Microsoft.Windows.CppWinRT.2.0.240111.5\build\native\Microsoft.Windows.CppWinRT.targets" Condition="Exists('$(RepoRoot)packages\Microsoft.Windows.CppWinRT.2.0.240111.5\build\native\Microsoft.Windows.CppWinRT.targets')" />
62    </ImportGroup>
63    <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
64      <PropertyGroup>
65        <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>
66      </PropertyGroup>
67      <Error Condition="!Exists('$(RepoRoot)packages\Microsoft.Windows.CppWinRT.2.0.240111.5\build\native\Microsoft.Windows.CppWinRT.props')" Text="$([System.String]::Format('$(ErrorText)', '$(RepoRoot)packages\Microsoft.Windows.CppWinRT.2.0.240111.5\build\native\Microsoft.Windows.CppWinRT.props'))" />
68      <Error Condition="!Exists('$(RepoRoot)packages\Microsoft.Windows.CppWinRT.2.0.240111.5\build\native\Microsoft.Windows.CppWinRT.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(RepoRoot)packages\Microsoft.Windows.CppWinRT.2.0.240111.5\build\native\Microsoft.Windows.CppWinRT.targets'))" />
69    </Target>
70  </Project>