最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Create a GRPC server in C# without importing packages - Stack Overflow

programmeradmin6浏览0评论

I would like to create a gRPC server without importing nuget packages.

Rather than import the packages, I would like to obtain and directly reference the necessary DLLs in my solution.

I am using the Greeter example server/client code at: .0&tabs=visual-studio

In the tutorial, you start by:

"-In the Create a new project dialog, search for gRPC. Select ASP.NET Core gRPC Service and select Next."

This automatically includes the Grpc.AspNetCore package and the Microsoft.AspNetCore.App and Microsoft.NetCore.App frameworks:

Since I am unable to use packages, I cannot use this project template, because of the automatic imports.

I have tried starting from a .NET 8 console app and adding the requisite DLL references individually, but I must be missing something, as the generated code is not being created from the greeter.proto file when I compile the project.

I'm guessing that there is a dependency somewhere that I am missing, or maybe a bad configuration.

Is this possible, or am I trying to do something that simply cannot work?

发布评论

评论列表(0)

  1. 暂无评论