I', scratching my head about how to import "google/protobuf/empty.proto" to my proto file. What I'm doing so far:
In my .csproj file, I added the following:
<Project Sdk="Microsoft.NET.Sdk.Web"> <PropertyGroup> <TargetFramework>netcoreapp3.0</TargetFramework> </PropertyGroup> <ItemGroup> <Protobuf Include="C:\Users\me\.nuget\packages\google.protobuf.tools\3.10.0\tools\google\protobuf\*.proto" GrpcServices="Server"/> <Protobuf Include="Protos\*.proto" GrpcServices="Server" /> </ItemGroup> <ItemGroup> <PackageReference Include="Grpc.AspNetCore" Version="2.23.2" /> <PackageReference Include="System.Reactive" Version="4.1.6" /> </ItemGroup> </Project>In my project folder, I have a folder called "Protos" where I have a test.proto file in which I would like to use the "empty.proto" like:
import "google/protobuf/empty.proto";
However, I get the error File not found in project. I also do not like to specify the "3.10.0" in the ItemGroup. What is the correct way to use google protobuf well-known types?