Paket icon indicating copy to clipboard operation
Paket copied to clipboard

Using Paket for a Grpc project

Open l3m opened this issue 3 years ago • 2 comments

Description

According to Grpc documentation, the package reference for Gprc.Tools should look something like this:

<PackageReference Include="Grpc.Tools" Version="2.23.0">
      <PrivateAssets>all</PrivateAssets>
      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

For paket, I found the following issues that seem related: #2370 #4097.

Should it be possible to use the current version of paket with Grpc.Tools, so that the equivalent functionality of the above PackageReference is achieved?

If yes, how can I set this up in paket.dependencies and/or paket.reference?

If no, is it harmful to use paket for all other nuget references, and just add Grpc.Tools as above as PackageReference?

l3m avatar May 20 '22 17:05 l3m

Not sure if this is relevant for you but if you are using F# then see this issue: https://github.com/grpc/grpc-dotnet/issues/1742

purkhusid avatar May 23 '22 08:05 purkhusid

@purkhusid Thanks, I'm aware. We have a mostly F#-solution with a C#-project for Grpc-Codegen. It works with nuget, but I'd prefer to use paket for all projects, not just for the F# ones.

l3m avatar May 23 '22 17:05 l3m