<Project>
  <Import Project=".\Common.props" />

  <PropertyGroup>
    <NoWarn>$(NoWarn),1574,1591</NoWarn>
    <IsPackable>false</IsPackable>
    <CodeAnalysisRuleSet>$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), 'OpenTelemetry.sln'))\build\OpenTelemetry.test.ruleset</CodeAnalysisRuleSet>
  </PropertyGroup>

  <PropertyGroup Condition="$(MSBuildProjectName.EndsWith('.Tests'))">
    <IsTestProject>true</IsTestProject>
  </PropertyGroup>

  <ItemGroup Condition="$(MSBuildProjectName.EndsWith('.Tests'))">
    <Content Include="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), 'OpenTelemetry.sln'))\build\xunit.runner.json">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </Content>
    <!--Temp workaround to allow using daily dotnet 6 builds-->
    <!--<PackageReference Include="System.Runtime.CompilerServices.Unsafe" PrivateAssets="All" NoWarn="NU1605" Version="6.0.0-preview.4.21253.7" />-->
  </ItemGroup>

  <PropertyGroup>
    <!-- Running unit tests from VSCode does not work with .NET SDK 6.0.200 without ProduceReferenceAssemblyInOutDir -->
    <!-- Related breaking change: https://docs.microsoft.com/en-us/dotnet/core/compatibility/sdk/6.0/write-reference-assemblies-to-obj -->
    <ProduceReferenceAssemblyInOutDir>true</ProduceReferenceAssemblyInOutDir>
  </PropertyGroup>

  <PropertyGroup Label="Package versions used by test and example projects">
    <!--
      Please sort alphabetically.
      Refer to https://docs.microsoft.com/nuget/concepts/package-versioning for semver syntax.
    -->
    <BenchmarkDotNetPkgVer>[0.13.2,0.14)</BenchmarkDotNetPkgVer>
    <CommandLineParserPkgVer>[2.3.0,3.0)</CommandLineParserPkgVer>
    <DotNetXUnitCliVer>[2.3.1,3.0)</DotNetXUnitCliVer>
    <GoogleProtobufPkgVer>[3.19.4,4.0)</GoogleProtobufPkgVer>
    <GrpcAspNetCorePkgVer>[2.48.0,3.0)</GrpcAspNetCorePkgVer>
    <GrpcAspNetCoreServerPkgVer>[2.48.0, 3.0)</GrpcAspNetCoreServerPkgVer>
    <GrpcToolsPkgVer>[2.48.0,3.0)</GrpcToolsPkgVer>
    <MicrosoftExtensionsHostingPkgVer>[3.1.6,5.0)</MicrosoftExtensionsHostingPkgVer>
    <MicrosoftExtensionsLoggingPkgVer>[6.0.0,)</MicrosoftExtensionsLoggingPkgVer>
    <MicrosoftExtensionsLoggingAbstractionsPkgVer>[6.0.0,)</MicrosoftExtensionsLoggingAbstractionsPkgVer>
    <MicrosoftNETTestSdkPkgVer>[17.3.0]</MicrosoftNETTestSdkPkgVer>
    <MoqPkgVer>[4.14.5,5.0)</MoqPkgVer>
    <RabbitMQClientPkgVer>[6.1.0,7.0)</RabbitMQClientPkgVer>
    <RuntimeInstrumentationPkgVer>[1.0.0,2.0)</RuntimeInstrumentationPkgVer>
    <SwashbuckleAspNetCorePkgVer>[6.4.0]</SwashbuckleAspNetCorePkgVer>
    <SystemTextJsonPkgVer>6.0.5</SystemTextJsonPkgVer>
    <XUnitRunnerVisualStudioPkgVer>[2.4.5,3.0)</XUnitRunnerVisualStudioPkgVer>
    <XUnitPkgVer>[2.4.2,3.0)</XUnitPkgVer>
  </PropertyGroup>

  <ItemGroup>
    <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
  </ItemGroup>
</Project>
