From 2bb49712aa6bdb17503c481c2bed52fe479515ad Mon Sep 17 00:00:00 2001 From: Sydney Acksman Date: Mon, 4 Nov 2019 12:47:56 -0600 Subject: [PATCH] Add comment to summarize project Set lang version to C# 3.0 Add .NET Standard 2.0 target Fix partial diagnostic string since it requires C# 6 --- .../Google.Protobuf.Test.CodeGen/ForeignMessagePartial.cs | 2 +- .../Google.Protobuf.Test.CodeGen.csproj | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) 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