Skip to content

Commit

Permalink
#2401 Add new TFM's so package dependency can be removed (#2402)
Browse files Browse the repository at this point in the history
Co-authored-by: James Newton-King <[email protected]>
  • Loading branch information
thompson-tomo and JamesNK authored Apr 17, 2024
1 parent add886e commit c04d01a
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 758 deletions.
10 changes: 7 additions & 3 deletions src/Grpc.HealthCheck/Grpc.HealthCheck.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<IsGrpcPublishedPackage>true</IsGrpcPublishedPackage>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<TargetFrameworks>net462;netstandard2.0</TargetFrameworks>
<TargetFrameworks>net462;netstandard2.0;net6.0;net7.0;net8.0</TargetFrameworks>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>

Expand All @@ -19,9 +19,13 @@

<ItemGroup>
<PackageReference Include="Google.Protobuf" />
<PackageReference Include="System.Threading.Channels" />
<PackageReference Include="Grpc.Tools" PrivateAssets="All" />

<Protobuf Include="health.proto" GrpcServices="Both" />
</ItemGroup>

<!-- TODO(jtattermusch): add reference to Grpc.Tools and use it for generating the Health.cs and HealthGrpc.cs sources -->
<ItemGroup Condition=" '$(TargetFramework)' == 'net462' or '$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="System.Threading.Channels" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net462' ">
Expand Down
Loading

0 comments on commit c04d01a

Please sign in to comment.