Skip to content

Commit

Permalink
Redo C# examples to use new Grpc.Tools
Browse files Browse the repository at this point in the history
* No pre-compilation of proto files required;
* Tested under Windows and Linux dotnet and mono;
* But not tested on Mac/mono;
* README updated.
  • Loading branch information
kkm committed Oct 14, 2018
1 parent d0cb61e commit 6fcb5b2
Show file tree
Hide file tree
Showing 28 changed files with 83 additions and 2,428 deletions.
2 changes: 2 additions & 0 deletions examples/csharp/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.vs/
bin/
obj/
packages/
*.suo
*.user
*.userprefs
2 changes: 1 addition & 1 deletion examples/csharp/Helloworld/Greeter.sln
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@


Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26228.4
Expand Down
15 changes: 6 additions & 9 deletions examples/csharp/Helloworld/Greeter/Greeter.csproj
Original file line number Diff line number Diff line change
@@ -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>
312 changes: 0 additions & 312 deletions examples/csharp/Helloworld/Greeter/Helloworld.cs

This file was deleted.

Loading

0 comments on commit 6fcb5b2

Please sign in to comment.