Skip to content

google/protobuf/go_features.proto : error : File not found when generating C# code #2674

@printfn

Description

@printfn

I have a .proto file starting with:

edition = "2023";

import "google/protobuf/go_features.proto";
option features.(pb.go).api_level = API_OPAQUE;

option go_package = "...";
option csharp_namespace = "...";

import "google/protobuf/struct.proto";
import "google/protobuf/timestamp.proto";

message Message {
	...
}

When trying to generate C# gRPC code for this proto file I get an error message:

google/protobuf/go_features.proto : error : File not found. [/.../....csproj]
proto/proto.proto(3,1): error : Import "google/protobuf/go_features.proto" was not found or had errors. [/.../....csproj]

Compiling protobuf files that don't import go_features.proto seems to work fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions