34 lines
1.8 KiB
XML
34 lines
1.8 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<OutputType>Exe</OutputType>
|
|
<!-- No warn is needed for autogenerated code by protobuf: CS8981 - The type name only contains lower-cased ascii characters. -->
|
|
<NoWarn Condition="'$(TargetFramework)' == 'net8.0' OR '$(TargetFramework)' == 'net7.0'">CS8981;$(NoWarn)</NoWarn>
|
|
<!-- Allow to downgrade Grpc.Tools on MacOS 11. -->
|
|
<NoWarn Condition="'$(GITHUB_RUNNER_SYSTEM)' == 'macos-11'">NU1605;$(NoWarn)</NoWarn>
|
|
|
|
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Google.Protobuf" Condition="'$(TargetFramework)' == 'net462' or ( '$(LibraryVersion)' != '' and '$(LibraryVersion)' <= '2.54.0' )" />
|
|
<PackageReference Include="Grpc.AspNetCore" Condition="'$(TargetFramework)' != 'net462'" VersionOverride="$(LibraryVersion)" />
|
|
<PackageReference Include="Grpc.Net.Client" VersionOverride="$(LibraryVersion)" />
|
|
<PackageReference Include="Grpc.Net.Client.Web" Condition="'$(TargetFramework)' == 'net462'" VersionOverride="$(LibraryVersion)" />
|
|
<PackageReference Include="Grpc.Tools" Condition="'$(TargetFramework)' == 'net462' or '$(GITHUB_RUNNER_SYSTEM)' == 'macos-11'" />
|
|
<!-- Workaround! Microsoft.Extensions.Logging.Abstractions v.8.0.0 is minimal version supported by auto instrumentation.
|
|
Grpc.Net.Client references older version. It prevents to load required version from Additional Dependencies store-->
|
|
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" VersionOverride="8.0.0" />
|
|
<PackageReference Include="System.Diagnostics.DiagnosticSource" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Protobuf Include="Proto\greet.proto" GrpcServices="Client,Server" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Compile Include="..\..\..\IntegrationTests\Helpers\TcpPortProvider.cs">
|
|
<Link>TcpPortProvider.cs</Link>
|
|
</Compile>
|
|
</ItemGroup>
|
|
</Project> |