fhir icon indicating copy to clipboard operation
fhir copied to clipboard

Namespace/Class collisions with C# compiler in DatatypesReflection

Open saltatory opened this issue 5 years ago • 2 comments

Both proto/google/fhir/proto/r4/core/datatypes.proto and proto/google/fhir/proto/r4/core/profiles/datatypes.proto generate a class named DatatypesReflection as part of the standard output from protoc. Both *.proto files use the same package google.fhir.r4.core. This results in a duplicate name collision in the generated output.

This problem disappears if the datatypes.proto file is moved into the google.fhir.r4.core.profiles namespace.

Tho' I am not certain if that causes any other unrelated issues.

saltatory avatar Nov 06 '20 20:11 saltatory

We'd love to suport C# but don't really have the bandwidth right now :(

If going this route, as a first step you might try to have a look at https://github.com/bazelbuild/rules_dotnet to see if you can get support going with Bazel?

Cam2337 avatar Nov 26 '20 01:11 Cam2337

Thanks for the reply Cam!

Got it ... I'll take a look at the Bazel configuration. It may be a while as I'm working on other elements of the project. If I come up with something, I'll contribute back.

saltatory avatar Nov 27 '20 19:11 saltatory