简体   繁体   中英

How can I complile Grpc.Core.dll form https://github.com/grpc/grpc for c# Visual Studio solution

I'm implementing Grpc server using Visual Studio C#. Client-side implemented on Android and IoS using chromium.
We need to get HTTP3 QUIC connection.
After investigations and testing we found that gRPC server closes connection after handshake because client don't send "ALPN property".
I modified gRPC core to disable ALPN check, as per the following:

https://github.com/grpc/grpc/issues/29331
https://github.com/grpc/grpc/issues/23172

by changing

#define TSI_OPENSSL_ALPN_SUPPORT 0

I have 3 questions:

  1. How do I link gRPC libraries that I build (as per cmake) into Visual Studio C# solution.
  2. May be somebody knows, how to turn off (ALPN) check without changing gRPC core?
  3. Any other options to build c++ Grpc.Core library to integrate with Visual Studio C# solution?

Any help will be appreciated. Thank's

Please follow the instructions from the project located here and try to build it on the command line.

I think you can also open the cmake file in Visual Studio. Please check this manual.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM