use GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE for C# distribtest that tests classic .csproj

pull/23995/head
Jan Tattermusch 5 years ago
parent 2fb9b57fe5
commit 42f741ecc4
  1. 6
      test/distrib/csharp/DistribTest/DistribTest.csproj

@ -56,6 +56,12 @@
<Prefer32Bit>true</Prefer32Bit>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<!-- this project is built with a legacy C# compiler, so ref structs are not supported.
Use GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE to still allow building the protobuf
generate code -->
<DefineConstants>$(DefineConstants);GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Reference Include="Grpc.Auth">
<HintPath>..\packages\Grpc.Auth.__GRPC_NUGET_VERSION__\lib\net45\Grpc.Auth.dll</HintPath>

Loading…
Cancel
Save