Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically compile _grpc.cs when --grpc is passed #653

Merged
merged 2 commits into from
Oct 24, 2017

Conversation

chwarr
Copy link
Member

@chwarr chwarr commented Oct 24, 2017

Please rebase when merging.

@hcoona: I merged #630 manually into this PR and then added handling for --structs=false on top of that to get the shared-types-assembly example working. Please leave #630 open. When this is merged in, it will be closed automatically with a pointer to the final commit that the PR results in.

commit 0e5aa58
Author: Christopher Warrington
AuthorDate: Fri Oct 20 18:58:59 2017 -0700
Commit: Christopher Warrington
CommitDate: Mon Oct 23 18:31:41 2017 -0700

[c# grpc] Skip compilation for --structs=false

* The MSBuild codegen targets now detect --structs=false and skip
  automatic compilation of the non-existent `_types.cs` files.
* Added a gRPC example that show how to use a shared type assembly
  between a client and service.

commit 61d9644
Author: Shuai Zhang
AuthorDate: Mon Oct 23 14:49:46 2017 -0700
Commit: Christopher Warrington
CommitDate: Mon Oct 23 18:31:33 2017 -0700

[c# grpc] Include grpc generated files automatically

* Two cases need to be handeled: $BondOptions contains --grpc for
  no-overridden BondCodegen items, the %BondCodegen.Options contains
  --grpc. Also --grpc=false needs to be handled in both cases.
* Updated the examples ad tests to no longer include the
  generated *_grpc.cs files.

Fixes https://github.com/Microsoft/bond/issues/448
Closes https://github.com/Microsoft/bond/pull/630

* Two cases need to be handeled: $BondOptions contains --grpc for
  no-overridden BondCodegen items, the %BondCodegen.Options contains
  --grpc. Also --grpc=false needs to be handled in both cases.
* Updated the examples ad tests to no longer include the
  generated *_grpc.cs files.

Fixes microsoft#448
Closes microsoft#630
@chwarr chwarr requested a review from lalo October 24, 2017 01:34
@chwarr chwarr force-pushed the chwarr/grpc-msbuild-gen branch 3 times, most recently from 092bb21 to 48f937e Compare October 24, 2017 01:38
* The MSBuild codegen targets now detect --structs=false and skip
  automatic compilation of the non-existent `_types.cs` files.
* Added a gRPC example that show how to use a shared type assembly
  between a client and service.
@lalo lalo merged commit bab0f2b into microsoft:master Oct 24, 2017
@chwarr chwarr deleted the chwarr/grpc-msbuild-gen branch October 24, 2017 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants