xref: /aosp_15_r20/external/grpc-grpc/src/csharp/Grpc.Tools.Tests/Grpc.Tools.Tests.csproj (revision cc02d7e222339f7a4f6ba5f422e6413f4bd931f2)
1<Project Sdk="Microsoft.NET.Sdk" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2  <PropertyGroup>
3    <TargetFrameworks>net45;netcoreapp3.1</TargetFrameworks>
4    <OutputType>Exe</OutputType>
5    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
6  </PropertyGroup>
7
8  <Import Project="..\Grpc.Tools\SourceLink.csproj.include" />
9
10  <ItemGroup>
11    <!-- Prevent tests data files from being compiled into this project -->
12    <!-- TODO(jtattermusch): find a better solution for this. -->
13    <Compile Remove="IntegrationTests\**" />
14    <EmbeddedResource Remove="IntegrationTests\**" />
15    <None Remove="IntegrationTests\**" />
16  </ItemGroup>
17
18  <ItemGroup>
19    <ProjectReference Include="..\Grpc.Tools\Grpc.Tools.csproj" />
20  </ItemGroup>
21
22  <ItemGroup>
23    <PackageReference Include="Moq" Version="4.8.3" />
24    <PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
25    <PackageReference Include="NUnit; NUnitLite" Version="3.10.1" />
26    <PackageReference Include="System.Runtime.InteropServices.RuntimeInformation" Version="4.3.0" />
27  </ItemGroup>
28
29  <PropertyGroup Condition=" '$(TargetFramework)' != 'net45' ">
30    <DefineConstants>$(DefineConstants);NETCORE</DefineConstants>
31  </PropertyGroup>
32
33  <ItemGroup Condition=" '$(TargetFramework)' == 'net45' ">
34    <Reference Include="Microsoft.Build.Framework; Microsoft.Build.Utilities.v4.0" />
35  </ItemGroup>
36
37  <ItemGroup Condition=" '$(TargetFramework)' != 'net45' ">
38    <PackageReference Include="Microsoft.Build.Framework; Microsoft.Build.Utilities.Core" Version="15.6.*" />
39  </ItemGroup>
40
41</Project>
42