From 94edf0e21f5eb2a05ab3b3b4912d325fc2493f78 Mon Sep 17 00:00:00 2001 From: Jan Tattermusch Date: Mon, 26 Oct 2020 13:58:43 +0100 Subject: [PATCH] introduce common.props, set LangVersion to 7.2 --- src/csharp/Directory.Build.props | 1 + src/csharp/Directory.Build.targets | 9 +++++++++ src/csharp/Grpc.Auth/Grpc.Auth.csproj | 3 --- src/csharp/Grpc.Core.Api/Grpc.Core.Api.csproj | 3 --- .../Grpc.Core.NativeDebug.csproj | 3 --- src/csharp/Grpc.Core.Testing/Grpc.Core.Testing.csproj | 3 --- src/csharp/Grpc.Core.Tests/Grpc.Core.Tests.csproj | 3 --- src/csharp/Grpc.Core.Xamarin/Grpc.Core.Xamarin.csproj | 3 --- src/csharp/Grpc.Core/Grpc.Core.csproj | 7 ------- .../Grpc.Examples.MathClient.csproj | 3 --- .../Grpc.Examples.MathServer.csproj | 3 --- .../Grpc.Examples.Tests/Grpc.Examples.Tests.csproj | 3 --- src/csharp/Grpc.Examples/Grpc.Examples.csproj | 3 --- .../Grpc.HealthCheck.Tests.csproj | 3 --- src/csharp/Grpc.HealthCheck/Grpc.HealthCheck.csproj | 3 --- .../Grpc.IntegrationTesting.Client.csproj | 3 --- .../Grpc.IntegrationTesting.QpsWorker.csproj | 3 --- .../Grpc.IntegrationTesting.Server.csproj | 3 --- .../Grpc.IntegrationTesting.StressClient.csproj | 3 --- .../Grpc.IntegrationTesting.XdsClient.csproj | 3 --- .../Grpc.IntegrationTesting.csproj | 3 --- .../Grpc.Microbenchmarks/Grpc.Microbenchmarks.csproj | 3 --- .../Grpc.Reflection.Tests.csproj | 3 --- src/csharp/Grpc.Reflection/Grpc.Reflection.csproj | 3 --- src/csharp/Grpc.Tools.Tests/Grpc.Tools.Tests.csproj | 3 --- src/csharp/Grpc.Tools/Grpc.Tools.csproj | 3 --- .../Common.csproj.include => build/common.props} | 11 ++++------- 27 files changed, 14 insertions(+), 83 deletions(-) create mode 100644 src/csharp/Directory.Build.targets rename src/csharp/{Grpc.Core/Common.csproj.include => build/common.props} (75%) mode change 100755 => 100644 diff --git a/src/csharp/Directory.Build.props b/src/csharp/Directory.Build.props index 7127cc4d509..b7c04deaed4 100644 --- a/src/csharp/Directory.Build.props +++ b/src/csharp/Directory.Build.props @@ -1,3 +1,4 @@ + \ No newline at end of file diff --git a/src/csharp/Directory.Build.targets b/src/csharp/Directory.Build.targets new file mode 100644 index 00000000000..29026d13d17 --- /dev/null +++ b/src/csharp/Directory.Build.targets @@ -0,0 +1,9 @@ + + + + + all + runtime; build; native; contentfiles; analyzers + + + \ No newline at end of file diff --git a/src/csharp/Grpc.Auth/Grpc.Auth.csproj b/src/csharp/Grpc.Auth/Grpc.Auth.csproj index a6f70eae260..dcc9d56a8ae 100755 --- a/src/csharp/Grpc.Auth/Grpc.Auth.csproj +++ b/src/csharp/Grpc.Auth/Grpc.Auth.csproj @@ -1,7 +1,4 @@ - - - The gRPC Authors Copyright 2015 The gRPC Authors diff --git a/src/csharp/Grpc.Core.Api/Grpc.Core.Api.csproj b/src/csharp/Grpc.Core.Api/Grpc.Core.Api.csproj index ae6bea8bd16..2acd1d7232c 100755 --- a/src/csharp/Grpc.Core.Api/Grpc.Core.Api.csproj +++ b/src/csharp/Grpc.Core.Api/Grpc.Core.Api.csproj @@ -1,7 +1,4 @@ - - - The gRPC Authors Copyright 2019 The gRPC Authors diff --git a/src/csharp/Grpc.Core.NativeDebug/Grpc.Core.NativeDebug.csproj b/src/csharp/Grpc.Core.NativeDebug/Grpc.Core.NativeDebug.csproj index a8b13030ee6..be0bd1d2b10 100644 --- a/src/csharp/Grpc.Core.NativeDebug/Grpc.Core.NativeDebug.csproj +++ b/src/csharp/Grpc.Core.NativeDebug/Grpc.Core.NativeDebug.csproj @@ -1,7 +1,4 @@  - - - The gRPC Authors Copyright 2015 The gRPC Authors diff --git a/src/csharp/Grpc.Core.Testing/Grpc.Core.Testing.csproj b/src/csharp/Grpc.Core.Testing/Grpc.Core.Testing.csproj index 3cd36d45008..e9809d7fa66 100755 --- a/src/csharp/Grpc.Core.Testing/Grpc.Core.Testing.csproj +++ b/src/csharp/Grpc.Core.Testing/Grpc.Core.Testing.csproj @@ -1,7 +1,4 @@  - - - The gRPC Authors Miscellaneous code for testing Grpc.Core diff --git a/src/csharp/Grpc.Core.Tests/Grpc.Core.Tests.csproj b/src/csharp/Grpc.Core.Tests/Grpc.Core.Tests.csproj index 1aa314f4aec..b5f58c40170 100755 --- a/src/csharp/Grpc.Core.Tests/Grpc.Core.Tests.csproj +++ b/src/csharp/Grpc.Core.Tests/Grpc.Core.Tests.csproj @@ -1,7 +1,4 @@ - - - net45;netcoreapp2.1 Exe diff --git a/src/csharp/Grpc.Core.Xamarin/Grpc.Core.Xamarin.csproj b/src/csharp/Grpc.Core.Xamarin/Grpc.Core.Xamarin.csproj index fbfad43ca27..277a1a48a03 100644 --- a/src/csharp/Grpc.Core.Xamarin/Grpc.Core.Xamarin.csproj +++ b/src/csharp/Grpc.Core.Xamarin/Grpc.Core.Xamarin.csproj @@ -1,7 +1,4 @@  - - - The gRPC Authors Copyright 2015 The gRPC Authors diff --git a/src/csharp/Grpc.Core/Grpc.Core.csproj b/src/csharp/Grpc.Core/Grpc.Core.csproj index 5bb9ad04749..816f9ba68bf 100755 --- a/src/csharp/Grpc.Core/Grpc.Core.csproj +++ b/src/csharp/Grpc.Core/Grpc.Core.csproj @@ -1,7 +1,4 @@ - - - The gRPC Authors Copyright 2015 The gRPC Authors @@ -23,10 +20,6 @@ true - - 7.2 - - diff --git a/src/csharp/Grpc.Examples.MathClient/Grpc.Examples.MathClient.csproj b/src/csharp/Grpc.Examples.MathClient/Grpc.Examples.MathClient.csproj index 03018239525..6b95ddb45e8 100755 --- a/src/csharp/Grpc.Examples.MathClient/Grpc.Examples.MathClient.csproj +++ b/src/csharp/Grpc.Examples.MathClient/Grpc.Examples.MathClient.csproj @@ -1,7 +1,4 @@  - - - net45;netcoreapp2.1 Exe diff --git a/src/csharp/Grpc.Examples.MathServer/Grpc.Examples.MathServer.csproj b/src/csharp/Grpc.Examples.MathServer/Grpc.Examples.MathServer.csproj index 03018239525..6b95ddb45e8 100755 --- a/src/csharp/Grpc.Examples.MathServer/Grpc.Examples.MathServer.csproj +++ b/src/csharp/Grpc.Examples.MathServer/Grpc.Examples.MathServer.csproj @@ -1,7 +1,4 @@  - - - net45;netcoreapp2.1 Exe diff --git a/src/csharp/Grpc.Examples.Tests/Grpc.Examples.Tests.csproj b/src/csharp/Grpc.Examples.Tests/Grpc.Examples.Tests.csproj index b3fbbfffcca..e6304c42ca3 100755 --- a/src/csharp/Grpc.Examples.Tests/Grpc.Examples.Tests.csproj +++ b/src/csharp/Grpc.Examples.Tests/Grpc.Examples.Tests.csproj @@ -1,7 +1,4 @@  - - - net45;netcoreapp2.1 Exe diff --git a/src/csharp/Grpc.Examples/Grpc.Examples.csproj b/src/csharp/Grpc.Examples/Grpc.Examples.csproj index 66ea71853bf..915ef691249 100755 --- a/src/csharp/Grpc.Examples/Grpc.Examples.csproj +++ b/src/csharp/Grpc.Examples/Grpc.Examples.csproj @@ -1,7 +1,4 @@  - - - net45;netcoreapp2.1 true diff --git a/src/csharp/Grpc.HealthCheck.Tests/Grpc.HealthCheck.Tests.csproj b/src/csharp/Grpc.HealthCheck.Tests/Grpc.HealthCheck.Tests.csproj index a5dfa1854f8..e04eaa538e8 100755 --- a/src/csharp/Grpc.HealthCheck.Tests/Grpc.HealthCheck.Tests.csproj +++ b/src/csharp/Grpc.HealthCheck.Tests/Grpc.HealthCheck.Tests.csproj @@ -1,7 +1,4 @@ - - - net45;netcoreapp2.1 Exe diff --git a/src/csharp/Grpc.HealthCheck/Grpc.HealthCheck.csproj b/src/csharp/Grpc.HealthCheck/Grpc.HealthCheck.csproj index 7c475a9cc27..ecd781f3b0d 100755 --- a/src/csharp/Grpc.HealthCheck/Grpc.HealthCheck.csproj +++ b/src/csharp/Grpc.HealthCheck/Grpc.HealthCheck.csproj @@ -1,7 +1,4 @@ - - - The gRPC Authors Copyright 2015 The gRPC Authors diff --git a/src/csharp/Grpc.IntegrationTesting.Client/Grpc.IntegrationTesting.Client.csproj b/src/csharp/Grpc.IntegrationTesting.Client/Grpc.IntegrationTesting.Client.csproj index a5baf96357d..659753b16c0 100755 --- a/src/csharp/Grpc.IntegrationTesting.Client/Grpc.IntegrationTesting.Client.csproj +++ b/src/csharp/Grpc.IntegrationTesting.Client/Grpc.IntegrationTesting.Client.csproj @@ -1,7 +1,4 @@  - - - net45;netcoreapp2.1 Exe diff --git a/src/csharp/Grpc.IntegrationTesting.QpsWorker/Grpc.IntegrationTesting.QpsWorker.csproj b/src/csharp/Grpc.IntegrationTesting.QpsWorker/Grpc.IntegrationTesting.QpsWorker.csproj index 8f4833ea749..085d08c04b8 100755 --- a/src/csharp/Grpc.IntegrationTesting.QpsWorker/Grpc.IntegrationTesting.QpsWorker.csproj +++ b/src/csharp/Grpc.IntegrationTesting.QpsWorker/Grpc.IntegrationTesting.QpsWorker.csproj @@ -1,7 +1,4 @@  - - - net45;netcoreapp2.1 Exe diff --git a/src/csharp/Grpc.IntegrationTesting.Server/Grpc.IntegrationTesting.Server.csproj b/src/csharp/Grpc.IntegrationTesting.Server/Grpc.IntegrationTesting.Server.csproj index a5baf96357d..659753b16c0 100755 --- a/src/csharp/Grpc.IntegrationTesting.Server/Grpc.IntegrationTesting.Server.csproj +++ b/src/csharp/Grpc.IntegrationTesting.Server/Grpc.IntegrationTesting.Server.csproj @@ -1,7 +1,4 @@  - - - net45;netcoreapp2.1 Exe diff --git a/src/csharp/Grpc.IntegrationTesting.StressClient/Grpc.IntegrationTesting.StressClient.csproj b/src/csharp/Grpc.IntegrationTesting.StressClient/Grpc.IntegrationTesting.StressClient.csproj index a5baf96357d..659753b16c0 100755 --- a/src/csharp/Grpc.IntegrationTesting.StressClient/Grpc.IntegrationTesting.StressClient.csproj +++ b/src/csharp/Grpc.IntegrationTesting.StressClient/Grpc.IntegrationTesting.StressClient.csproj @@ -1,7 +1,4 @@  - - - net45;netcoreapp2.1 Exe diff --git a/src/csharp/Grpc.IntegrationTesting.XdsClient/Grpc.IntegrationTesting.XdsClient.csproj b/src/csharp/Grpc.IntegrationTesting.XdsClient/Grpc.IntegrationTesting.XdsClient.csproj index a5baf96357d..659753b16c0 100755 --- a/src/csharp/Grpc.IntegrationTesting.XdsClient/Grpc.IntegrationTesting.XdsClient.csproj +++ b/src/csharp/Grpc.IntegrationTesting.XdsClient/Grpc.IntegrationTesting.XdsClient.csproj @@ -1,7 +1,4 @@  - - - net45;netcoreapp2.1 Exe diff --git a/src/csharp/Grpc.IntegrationTesting/Grpc.IntegrationTesting.csproj b/src/csharp/Grpc.IntegrationTesting/Grpc.IntegrationTesting.csproj index 9d719896fc1..1c93822ad91 100755 --- a/src/csharp/Grpc.IntegrationTesting/Grpc.IntegrationTesting.csproj +++ b/src/csharp/Grpc.IntegrationTesting/Grpc.IntegrationTesting.csproj @@ -1,7 +1,4 @@  - - - net45;netcoreapp2.1 Exe diff --git a/src/csharp/Grpc.Microbenchmarks/Grpc.Microbenchmarks.csproj b/src/csharp/Grpc.Microbenchmarks/Grpc.Microbenchmarks.csproj index f775e4c85fb..9a7a79a2980 100644 --- a/src/csharp/Grpc.Microbenchmarks/Grpc.Microbenchmarks.csproj +++ b/src/csharp/Grpc.Microbenchmarks/Grpc.Microbenchmarks.csproj @@ -1,7 +1,4 @@  - - - net461;netcoreapp2.1 Exe diff --git a/src/csharp/Grpc.Reflection.Tests/Grpc.Reflection.Tests.csproj b/src/csharp/Grpc.Reflection.Tests/Grpc.Reflection.Tests.csproj index e19020808f7..5a6b67453a5 100755 --- a/src/csharp/Grpc.Reflection.Tests/Grpc.Reflection.Tests.csproj +++ b/src/csharp/Grpc.Reflection.Tests/Grpc.Reflection.Tests.csproj @@ -1,7 +1,4 @@ - - - net45;netcoreapp2.1 Exe diff --git a/src/csharp/Grpc.Reflection/Grpc.Reflection.csproj b/src/csharp/Grpc.Reflection/Grpc.Reflection.csproj index 4dbc8d69390..bc75a65e042 100755 --- a/src/csharp/Grpc.Reflection/Grpc.Reflection.csproj +++ b/src/csharp/Grpc.Reflection/Grpc.Reflection.csproj @@ -1,7 +1,4 @@ - - - The gRPC Authors Copyright 2016 The gRPC Authors diff --git a/src/csharp/Grpc.Tools.Tests/Grpc.Tools.Tests.csproj b/src/csharp/Grpc.Tools.Tests/Grpc.Tools.Tests.csproj index 85b1cf04c34..d7f6dc60471 100644 --- a/src/csharp/Grpc.Tools.Tests/Grpc.Tools.Tests.csproj +++ b/src/csharp/Grpc.Tools.Tests/Grpc.Tools.Tests.csproj @@ -1,7 +1,4 @@ - - - net45;netcoreapp2.1 Exe diff --git a/src/csharp/Grpc.Tools/Grpc.Tools.csproj b/src/csharp/Grpc.Tools/Grpc.Tools.csproj index f0c571e07f0..3923a8c5510 100644 --- a/src/csharp/Grpc.Tools/Grpc.Tools.csproj +++ b/src/csharp/Grpc.Tools/Grpc.Tools.csproj @@ -1,7 +1,4 @@ - - - Protobuf.MSBuild $(GrpcCsharpVersion) diff --git a/src/csharp/Grpc.Core/Common.csproj.include b/src/csharp/build/common.props old mode 100755 new mode 100644 similarity index 75% rename from src/csharp/Grpc.Core/Common.csproj.include rename to src/csharp/build/common.props index 41918e053af..40abd03a176 --- a/src/csharp/Grpc.Core/Common.csproj.include +++ b/src/csharp/build/common.props @@ -19,11 +19,8 @@ true - - - - all - runtime; build; native; contentfiles; analyzers - - + + 7.2 + +