Protocol Buffers WellKnownTypes resolution

Answered

Hi,

I have some .proto files in which I am using the Google WellKnownTypes, e.g. by importing 'google/protobuf/timestamp.proto', &c. ReSharper highlights these imports and usages of the types as errors even though the Protocol Buffer compiler is able to resolve them automatically.

My question is, is there a way to inform ReSharper how to resolve these, without importing the Google protos into my project?

Thanks,

Paul

1
1 comment

Paul Ruane, thank you for your question. Unfortunately, this happens to be a known issue - https://youtrack.jetbrains.com/issue/RSRP-451369.
As a workaround, please uncheck the "Protobuf" checkbox on the "ReSharper | Options | Environment | Products & Features" page and then restart Visual Studio. Sorry for the inconvenience.

0

Please sign in to leave a comment.