Redo C# examples to use new Grpc.Tools (with codegen build integration)#14684
Redo C# examples to use new Grpc.Tools (with codegen build integration)#14684jtattermusch merged 2 commits intogrpc:v1.17.xfrom
Conversation
|
|
|
aa86c1e to
affd149
Compare
* No pre-compilation of proto files required; * Tested under Windows and Linux dotnet and mono; * But not tested on Mac/mono; * README updated.
affd149 to
6fcb5b2
Compare
|
@kkm000 I changed the PR base to v1.17.x release branch (which got created yesterday). |
jtattermusch
left a comment
There was a problem hiding this comment.
Mostly happy with the change, a few nits.
| <Project Sdk="Microsoft.NET.Sdk"> | ||
|
|
||
| <PropertyGroup> | ||
| <AssemblyTitle>GreeterClient</AssemblyTitle> |
There was a problem hiding this comment.
It's fine to remove, but I'd like to see what the reason is.
There was a problem hiding this comment.
The thing is, there is a dozen or more parameters set by the build process, based one on the other, with sensible defaults. This randomly changes one of them--to its default (all of these base off the directory name in the end). So it just looked kind of random to me.
EDIT: This is in line with the SDK philosophy: the "classic" VS-maintained .csproj files became a monstrosity, so they decided to make these files for the SDK as simple as possible for human manipulation (as much as XML allows for that); basically, add sources and it "just works". And even the "add sources" is still automatic by default, although rather un-hermetizing, to say the least.
There was a problem hiding this comment.
sg, thanks for explaining.
| <PackageReference Include="Grpc" Version="1.17.0" /> | ||
| <PackageReference Include="Grpc.Tools" Version="1.17.0" PrivateAssets="All" /> | ||
|
|
||
| <Protobuf Include="../../../protos/helloworld.proto" Link="helloworld.proto" /> |
There was a problem hiding this comment.
nit: i'm not a fan of <Protobuf> being under the same <ItemGroup> as the package references.
There was a problem hiding this comment.
Done (+1 other file).
|
|
Depends on #13207 and #14683.
Version must be corrected where 1.10 is currently mentioned!Changed to 1.14.Changed to 1.17.