| 1 |
<Project Sdk="Microsoft.NET.Sdk"> |
| 2 |
|
| 3 |
<PropertyGroup> |
| 4 |
<OutputType>Exe</OutputType> |
| 5 |
|
| 6 |
<!-- set TargetFrameworks, but allow skipping selected frameworks by setting env variables --> |
| 7 |
<TargetFrameworks></TargetFrameworks> |
| 8 |
<TargetFrameworks Condition="'$(SKIP_NET45_DISTRIBTEST)' == ''">$(TargetFrameworks);net45</TargetFrameworks> |
| 9 |
<TargetFrameworks Condition="'$(SKIP_NETCOREAPP21_DISTRIBTEST)' == ''">$(TargetFrameworks);netcoreapp2.1</TargetFrameworks> |
| 10 |
<TargetFrameworks Condition="'$(SKIP_NETCOREAPP31_DISTRIBTEST)' == ''">$(TargetFrameworks);netcoreapp3.1</TargetFrameworks> |
| 11 |
<TargetFrameworks Condition="'$(SKIP_NET50_DISTRIBTEST)' == ''">$(TargetFrameworks);net5.0</TargetFrameworks> |
| 12 |
</PropertyGroup> |
| 13 |
|
| 14 |
<ItemGroup> |
| 15 |
<PackageReference Include="Grpc.Tools" Version="__GRPC_NUGET_VERSION__" /> |
| 16 |
<!-- Grpc.Core.Api is not the package under test, it's included only so that gRPC generated service stubs can compile. --> |
| 17 |
<PackageReference Include="Grpc.Core.Api" Version="2.46.5" /> |
| 18 |
<PackageReference Include="Google.Protobuf" Version="3.21.8" /> |
| 19 |
</ItemGroup> |
| 20 |
|
| 21 |
<ItemGroup> |
| 22 |
<Protobuf Include="**\*.proto" /> |
| 23 |
</ItemGroup> |
| 24 |
|
| 25 |
<!-- Needed for the net45 build to work on Unix. See https://github.com/dotnet/designs/pull/33 --> |
| 26 |
<ItemGroup> |
| 27 |
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0" PrivateAssets="All" /> |
| 28 |
</ItemGroup> |
| 29 |
</Project> |