Skip to content

Commit 4ee8fb9

Browse files
committed
csharp/premake5.lua: define: GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_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
1 parent cf0e0cc commit 4ee8fb9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

csharp/premake5.lua

+4
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ project "demo"
2020
targetdir "dist"
2121
clr "On"
2222

23+
defines {
24+
"GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE"
25+
}
26+
2327
files {
2428
"src/proto/Message.cs",
2529
"src/proto/Status.cs",

0 commit comments

Comments
 (0)