Skip to content

Commit

Permalink
csharp/premake5.lua: define: GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_…
Browse files Browse the repository at this point in the history
…MODE

"... make generated code compatible with old C# compilers (pre-roslyn
compilers from .NET framework and old versions of mono) that do not
support ref structs."

See also:
  protocolbuffers/protobuf#7490
  https://github.com/protocolbuffers/protobuf/releases/tag/v3.13.0
  • Loading branch information
guendto committed Sep 11, 2020
1 parent cf0e0cc commit 4ee8fb9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions csharp/premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ project "demo"
targetdir "dist"
clr "On"

defines {
"GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE"
}

files {
"src/proto/Message.cs",
"src/proto/Status.cs",
Expand Down

0 comments on commit 4ee8fb9

Please sign in to comment.