diff options
author | kkm <kkm@smartaction.com> | 2018-10-11 20:22:40 -0700 |
---|---|---|
committer | kkm <kkm@smartaction.com> | 2018-10-14 02:24:12 -0700 |
commit | 6fcb5b29e18268c8948d5bd99c14fca13f9d7b67 (patch) | |
tree | a33e6b46ab61a0d8434751d13ecd137e711f2e0c /examples/csharp/Helloworld/Greeter/Greeter.csproj | |
parent | d0cb61eada9d270b9043ec866b55c88617d362be (diff) |
Redo C# examples to use new Grpc.Tools
* No pre-compilation of proto files required;
* Tested under Windows and Linux dotnet and mono;
* But not tested on Mac/mono;
* README updated.
Diffstat (limited to 'examples/csharp/Helloworld/Greeter/Greeter.csproj')
-rw-r--r-- | examples/csharp/Helloworld/Greeter/Greeter.csproj | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/examples/csharp/Helloworld/Greeter/Greeter.csproj b/examples/csharp/Helloworld/Greeter/Greeter.csproj index eba262565d..3421926dca 100644 --- a/examples/csharp/Helloworld/Greeter/Greeter.csproj +++ b/examples/csharp/Helloworld/Greeter/Greeter.csproj @@ -1,18 +1,15 @@ -<Project Sdk="Microsoft.NET.Sdk"> +<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> - <AssemblyTitle>Greeter</AssemblyTitle> - <TargetFrameworks>netcoreapp2.1</TargetFrameworks> - <DebugType>portable</DebugType> - <AssemblyName>Greeter</AssemblyName> - <PackageId>Greeter</PackageId> + <TargetFramework>netstandard1.5</TargetFramework> </PropertyGroup> <ItemGroup> <PackageReference Include="Google.Protobuf" Version="3.6.1" /> - <PackageReference Include="Google.Protobuf.Tools" Version="3.6.1" /> - <PackageReference Include="Grpc" Version="1.14.1" /> - <PackageReference Include="Grpc.Tools" Version="1.14.1" /> + <PackageReference Include="Grpc" Version="1.17.0" /> + <PackageReference Include="Grpc.Tools" Version="1.17.0" PrivateAssets="All" /> + + <Protobuf Include="../../../protos/helloworld.proto" Link="helloworld.proto" /> </ItemGroup> </Project> |