C
C#9mo ago
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 architecture, I have a shared project between services called Shared.Protos, thais project contains the shared Protos files between services. I have a service called DatabaseService, it is a GRpc service project, who depends on the Shared.Protos project. As you know to make a proto grpc service you need to create a .proto file for that service which contains some definitions, then building the project and then the 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 shows some Compile-time errors that indicate that VS Code not found the new generated files/classes related to a new created proto service, and then VS Code don't show them in the 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
2 Replies
oke
oke9mo ago
$vsdrunk
MODiX
MODiX9mo ago
* close VS * remove the hidden folder .vs * remove all bin and obj folder next to each csproj (DO NOT TOUCH THE .git FOLDER OR WHAT'S INSIDE) * restart vs
Want results from more Discord servers?
Add your server