admin管理员组

文章数量:1352869

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?

本文标签: Create a GRPC server in C without importing packagesStack Overflow