Skip to content

Update gRPC template dependencies for AOT #46447

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

Merged
merged 1 commit into from
Feb 7, 2023
Merged

Conversation

JamesNK
Copy link
Member

@JamesNK JamesNK commented Feb 4, 2023

Grpc.* 2.51.0 fixes a couple of AOT warnings

Google.Protobuf also fixes warnings. It's not possible to get a full version in time for preview 2. I have added an RC version directly to the project template as a temporary measure. It overrides what is referenced by Grpc.AspNetCore.

@JamesNK JamesNK added the area-grpc Includes: GRPC wire-up, templates label Feb 4, 2023
@JamesNK JamesNK requested review from a team, dougbu and wtgodbe as code owners February 4, 2023 04:04
@JamesNK JamesNK force-pushed the jamesnk/grpc-template-aot branch from 95d8a79 to 9e45634 Compare February 5, 2023 00:50
@@ -12,6 +12,7 @@

<ItemGroup>
<PackageReference Include="Grpc.AspNetCore" Version="${GrpcAspNetCoreVersion}" />
<PackageReference Include="Google.Protobuf" Version="3.22.0-rc2" />
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note, this is hard coded because:

  1. I don't want to update other places that use Google.Protobuf, such as Microsoft.AspNetCore.Grpc.JsonTranscoding, to use it.
  2. It will be removed in a month or two.

@JamesNK JamesNK merged commit 12c5755 into main Feb 7, 2023
@JamesNK JamesNK deleted the jamesnk/grpc-template-aot branch February 7, 2023 01:56
@ghost ghost added this to the 8.0-preview2 milestone Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-grpc Includes: GRPC wire-up, templates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants