diff --git a/csharp/src/Google.Protobuf.Test.CodeGen/ForeignMessagePartial.cs b/csharp/src/Google.Protobuf.Test.CodeGen/ForeignMessagePartial.cs index 5663a69902..909bcea96e 100644 --- a/csharp/src/Google.Protobuf.Test.CodeGen/ForeignMessagePartial.cs +++ b/csharp/src/Google.Protobuf.Test.CodeGen/ForeignMessagePartial.cs @@ -39,7 +39,7 @@ namespace Google.Protobuf.TestProtos { public string ToDiagnosticString() { - return $"{{ \"c\": {C}, \"@cInHex\": \"{C:x}\" }}"; + return string.Format("{{ \"c\": {0}, \"@cInHex\": \"{0:x}\" }}", C); } } } diff --git a/csharp/src/Google.Protobuf.Test.CodeGen/Google.Protobuf.Test.CodeGen.csproj b/csharp/src/Google.Protobuf.Test.CodeGen/Google.Protobuf.Test.CodeGen.csproj index dd4cd84e56..d756b0f757 100644 --- a/csharp/src/Google.Protobuf.Test.CodeGen/Google.Protobuf.Test.CodeGen.csproj +++ b/csharp/src/Google.Protobuf.Test.CodeGen/Google.Protobuf.Test.CodeGen.csproj @@ -1,7 +1,13 @@ + - net451;netstandard1.0 + net451;netstandard1.0;netstandard2.0 + 3.0 ../../keys/Google.Protobuf.snk true true