© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
2 replies
M B V R K

Why GRPC proto services generated classes not recognizable at compile-time ?

Hi friends,
I'm working on a project using
Microservices
Microservices
architecture,
I have a shared project between services called
Shared.Protos
Shared.Protos
, thais project contains the shared
Protos
Protos
files between services.
I have a service called
DatabaseService
DatabaseService
, it is a
GRpc
GRpc
service project, who depends on the
Shared.Protos
Shared.Protos
project.
As you know to make a proto grpc service you need to create a
.proto
.proto
file for that service which contains some definitions, then building the project and then the
Grpc.Tools
Grpc.Tools
lib will automatically generate the classes.

The problem:
Everything is fine, when I build the project everything fine and good, but
VS Code
VS Code
shows some
Compile-time
Compile-time
errors that indicate that
VS Code
VS Code
not found the new generated files/classes related to a new created proto service, and then
VS Code
VS Code
don't show them in the
Intellisense
Intellisense
and this annoy me.

Please take a look on the attached video to understand.
Note :
The attached video I provided is shows the issue, but after the project built in the video the errors disappeared, but in most cases they didn't disappear till some period of time passed mostly 5 to 10 mins.

Please any help to fix this issue ? <3
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Testing services that are using Grpc clients generated via Grpc.Tools
C#CC# / help
3y ago
Grpc.Tools generating camelCase classes
C#CC# / help
12mo ago
✅ Get build output directory at compile time?
C#CC# / help
3y ago
❔ gRPC JsonTranscoding doesnt work using .proto project reference
C#CC# / help
4y ago