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

  <PropertyGroup Condition=" '$(OS)' == 'Windows_NT' ">
    <DefineConstants>$(DefineConstants);_WINDOWS</DefineConstants>
  </PropertyGroup>

  <ItemGroup>
    <Reference Include="System.EnterpriseServices" Condition="$(TargetFramework.StartsWith('net4'))" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="Google.Protobuf" />
    <PackageReference Include="Grpc.Tools" PrivateAssets="all" />
    <PackageReference Include="Microsoft.Data.SqlClient" />
    <PackageReference Include="Newtonsoft.Json" />
    <PackageReference Include="StrongNamer" Condition="$(TargetFramework.StartsWith('net4'))" />
    <PackageReference Include="System.Collections.Immutable" />
    <PackageReference Include="System.Runtime.InteropServices" />
    <PackageReference Include="System.Runtime.InteropServices.RuntimeInformation" />
    <PackageReference Include="Testcontainers" />
    <PackageReference Include="Verify.Xunit" />
    <PackageReference Include="Xunit.SkippableFact" />
  </ItemGroup>

  <ItemGroup>
    <Content Include="docker\azure.Dockerfile" CopyToOutputDirectory="PreserveNewest" />
    <Content Include="docker\mongodb.Dockerfile" CopyToOutputDirectory="PreserveNewest" />
    <Content Include="docker\mysql.Dockerfile" CopyToOutputDirectory="PreserveNewest" />
    <Content Include="docker\oracle.Dockerfile" CopyToOutputDirectory="PreserveNewest" />
    <Content Include="docker\postgres.Dockerfile" CopyToOutputDirectory="PreserveNewest" />
    <Content Include="docker\redis.Dockerfile" CopyToOutputDirectory="PreserveNewest" />
    <Content Include="docker\sql-server.Dockerfile" CopyToOutputDirectory="PreserveNewest" />
    <Content Include="docker\kafka.Dockerfile" CopyToOutputDirectory="PreserveNewest" />
    <Content Include="docker\rabbitmq.Dockerfile" CopyToOutputDirectory="PreserveNewest" />
    <Content Include="xunit.runner.json" CopyToOutputDirectory="PreserveNewest" />
  </ItemGroup>

  <ItemGroup>
    <ProjectReference Include="..\..\src\OpenTelemetry.AutoInstrumentation\OpenTelemetry.AutoInstrumentation.csproj" />
  </ItemGroup>

  <ItemGroup>
    <!-- GrpcServices is 'none' so that we do not need to depend on the grpc nuget package, and we only need protobuf support. -->
    <Protobuf Include="opentelemetry\**\*.proto" GrpcServices="none" />
  </ItemGroup>
</Project>
