<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>netcoreapp3.1</TargetFramework>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
    <PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
      <PrivateAssets>all</PrivateAssets>
      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
    </PackageReference>
    <PackageReference Include="xunit" Version="2.4.1" />
  </ItemGroup>

  <ItemGroup>
    <ProjectReference Include="..\..\..\src\Amazon.Lambda.Core\Amazon.Lambda.Core.csproj" />
    <ProjectReference Include="..\..\..\src\Amazon.Lambda.Serialization.Json\Amazon.Lambda.Serialization.Json.csproj" />
    <ProjectReference Include="..\..\HandlerTestNoSerializer\HandlerTestNoSerializer.csproj" />
    <ProjectReference Include="..\..\HandlerTest\HandlerTest.csproj" />
  </ItemGroup>

  <!--
    We rely on internal members to test Amazon.Lambda.RuntimeSupport.
    Linking to the source causes fewer problems than using the InternalsVisibleTo attribute on that assembly.
  -->
  <ItemGroup>
    <Compile Include="..\..\..\src\Amazon.Lambda.RuntimeSupport\**\*.cs" />
    <Compile Remove="..\..\..\src\Amazon.Lambda.RuntimeSupport\obj\**" />
  </ItemGroup>
  <ItemGroup>
    <None Update="CognitoIdentity.json">
      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
    </None>
    <None Update="CognitoClientContext.json">
      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
    </None>
  </ItemGroup>
</Project>