From 2b38a9166566ff4da84238a88740c755e636245c Mon Sep 17 00:00:00 2001 From: Jan Tattermusch Date: Thu, 14 Jan 2016 17:25:46 -0800 Subject: update helloworld example to 0.12.0 nuget --- examples/csharp/helloworld/.nuget/packages.config | 2 +- examples/csharp/helloworld/Greeter/Greeter.csproj | 25 ++++++++-------------- examples/csharp/helloworld/Greeter/packages.config | 10 ++++----- .../helloworld/GreeterClient/GreeterClient.csproj | 25 ++++++++-------------- .../csharp/helloworld/GreeterClient/Program.cs | 2 +- .../helloworld/GreeterClient/packages.config | 10 ++++----- .../helloworld/GreeterServer/GreeterServer.csproj | 25 ++++++++-------------- .../helloworld/GreeterServer/packages.config | 10 ++++----- examples/csharp/helloworld/generate_protos.bat | 2 +- 9 files changed, 45 insertions(+), 66 deletions(-) (limited to 'examples/csharp/helloworld') diff --git a/examples/csharp/helloworld/.nuget/packages.config b/examples/csharp/helloworld/.nuget/packages.config index 1c1f118d46..1cbe7e1d65 100644 --- a/examples/csharp/helloworld/.nuget/packages.config +++ b/examples/csharp/helloworld/.nuget/packages.config @@ -1,4 +1,4 @@  - + \ No newline at end of file diff --git a/examples/csharp/helloworld/Greeter/Greeter.csproj b/examples/csharp/helloworld/Greeter/Greeter.csproj index 2ae8620267..fa1c20f5ff 100644 --- a/examples/csharp/helloworld/Greeter/Greeter.csproj +++ b/examples/csharp/helloworld/Greeter/Greeter.csproj @@ -1,8 +1,5 @@  - - - Debug AnyCPU @@ -13,7 +10,7 @@ Greeter Greeter v4.5 - e423e365 + 4eea1d1c true @@ -37,9 +34,8 @@ ..\packages\Google.Protobuf.3.0.0-alpha4\lib\portable-net45+netcore45+wpa81+wp8\Google.Protobuf.dll - - False - ..\packages\Grpc.Core.0.7.1\lib\net45\Grpc.Core.dll + + ..\packages\Grpc.Core.0.12.0\lib\net45\Grpc.Core.dll @@ -57,18 +53,15 @@ + This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - - - + + + - - - + + \ No newline at end of file diff --git a/examples/csharp/helloworld/Greeter/packages.config b/examples/csharp/helloworld/Greeter/packages.config index c0f7387916..cabcadc78f 100644 --- a/examples/csharp/helloworld/Greeter/packages.config +++ b/examples/csharp/helloworld/Greeter/packages.config @@ -1,10 +1,10 @@  - - - - - + + + + + \ No newline at end of file diff --git a/examples/csharp/helloworld/GreeterClient/GreeterClient.csproj b/examples/csharp/helloworld/GreeterClient/GreeterClient.csproj index af330f2b90..164a6165ef 100644 --- a/examples/csharp/helloworld/GreeterClient/GreeterClient.csproj +++ b/examples/csharp/helloworld/GreeterClient/GreeterClient.csproj @@ -1,8 +1,5 @@  - - - Debug AnyCPU @@ -13,7 +10,7 @@ GreeterClient GreeterClient v4.5 - 2dcf22af + 29206d49 true @@ -37,9 +34,8 @@ ..\packages\Google.Protobuf.3.0.0-alpha4\lib\portable-net45+netcore45+wpa81+wp8\Google.Protobuf.dll - - False - ..\packages\Grpc.Core.0.7.1\lib\net45\Grpc.Core.dll + + ..\packages\Grpc.Core.0.12.0\lib\net45\Grpc.Core.dll @@ -60,18 +56,15 @@ + This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - - - + + + - - - + + \ No newline at end of file diff --git a/examples/csharp/helloworld/GreeterClient/Program.cs b/examples/csharp/helloworld/GreeterClient/Program.cs index 2749a92036..4393f2f3c2 100644 --- a/examples/csharp/helloworld/GreeterClient/Program.cs +++ b/examples/csharp/helloworld/GreeterClient/Program.cs @@ -37,7 +37,7 @@ namespace GreeterClient { public static void Main(string[] args) { - Channel channel = new Channel("127.0.0.1:50051", Credentials.Insecure); + Channel channel = new Channel("127.0.0.1:50051", ChannelCredentials.Insecure); var client = Greeter.NewClient(channel); String user = "you"; diff --git a/examples/csharp/helloworld/GreeterClient/packages.config b/examples/csharp/helloworld/GreeterClient/packages.config index c0f7387916..cabcadc78f 100644 --- a/examples/csharp/helloworld/GreeterClient/packages.config +++ b/examples/csharp/helloworld/GreeterClient/packages.config @@ -1,10 +1,10 @@  - - - - - + + + + + \ No newline at end of file diff --git a/examples/csharp/helloworld/GreeterServer/GreeterServer.csproj b/examples/csharp/helloworld/GreeterServer/GreeterServer.csproj index 752f32828b..56436d3834 100644 --- a/examples/csharp/helloworld/GreeterServer/GreeterServer.csproj +++ b/examples/csharp/helloworld/GreeterServer/GreeterServer.csproj @@ -1,8 +1,5 @@  - - - Debug AnyCPU @@ -13,7 +10,7 @@ GreeterServer GreeterServer v4.5 - 53a3a588 + 8a2cae0f true @@ -37,9 +34,8 @@ ..\packages\Google.Protobuf.3.0.0-alpha4\lib\portable-net45+netcore45+wpa81+wp8\Google.Protobuf.dll - - False - ..\packages\Grpc.Core.0.7.1\lib\net45\Grpc.Core.dll + + ..\packages\Grpc.Core.0.12.0\lib\net45\Grpc.Core.dll @@ -60,18 +56,15 @@ + This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - - - + + + - - - + + \ No newline at end of file diff --git a/examples/csharp/helloworld/GreeterServer/packages.config b/examples/csharp/helloworld/GreeterServer/packages.config index c0f7387916..cabcadc78f 100644 --- a/examples/csharp/helloworld/GreeterServer/packages.config +++ b/examples/csharp/helloworld/GreeterServer/packages.config @@ -1,10 +1,10 @@  - - - - - + + + + + \ No newline at end of file diff --git a/examples/csharp/helloworld/generate_protos.bat b/examples/csharp/helloworld/generate_protos.bat index 9a5a9d3ee3..8ba2c2e936 100644 --- a/examples/csharp/helloworld/generate_protos.bat +++ b/examples/csharp/helloworld/generate_protos.bat @@ -5,6 +5,6 @@ setlocal @rem enter this directory cd /d %~dp0 -packages\Google.Protobuf.3.0.0-alpha4\tools\protoc.exe -I../../protos --csharp_out Greeter ../../protos/helloworld.proto --grpc_out Greeter --plugin=protoc-gen-grpc=packages\Grpc.Tools.0.7.0\tools\grpc_csharp_plugin.exe +packages\Google.Protobuf.3.0.0-alpha4\tools\protoc.exe -I../../protos --csharp_out Greeter ../../protos/helloworld.proto --grpc_out Greeter --plugin=protoc-gen-grpc=packages\Grpc.Tools.0.12.0\tools\grpc_csharp_plugin.exe endlocal \ No newline at end of file -- cgit v1.2.3