Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
Droid/ | 03-May-2024 | - | 464 | 335 | ||
HelloworldXamarin/ | 03-May-2024 | - | 464 | 331 | ||
iOS/ | 03-May-2024 | - | 749 | 633 | ||
.gitignore | D | 03-May-2024 | 422 | 42 | 36 | |
HelloworldXamarin.sln | D | 03-May-2024 | 3 KiB | 46 | 44 | |
README.md | D | 03-May-2024 | 1.5 KiB | 38 | 26 |
README.md
1gRPC C# on Xamarin 2======================== 3 4EXPERIMENTAL ONLY 5------------- 6Support of the Xamarin platform is currently experimental. 7The example depends on experimental Grpc.Core nuget package that hasn't 8been officially released and is only available via the [daily builds](https://packages.grpc.io/) 9source. 10 11HINT: To download the package, please manually download the latest `.nupkg` packages from "Daily Builds" in [packages.grpc.io](https://packages.grpc.io/) into a local directory. Then add a nuget source that points to that directory (That can be [done in Visual Studio](https://docs.microsoft.com/en-us/nuget/tools/package-manager-ui#package-sources) or Visual Studio for Mac via "Configure nuget sources"). After that, nuget will also explore that directory when looking for packages. 12 13BACKGROUND 14------------- 15The example project supports `Xamarin.Android` and `Xamarin.iOS`. 16 17For this sample, we've already generated the server and client stubs from [helloworld.proto][]. 18 19PREREQUISITES 20------------- 21 22- The latest version Visual Studio 2017 or Visual Studio for Mac with Xamarin support installed. 23 24BUILD 25------- 26 27- Open the `HelloworldXamarin.sln` in Visual Studio (or Visual Studio for Mac) 28- Build the solution (Build -> Build All) 29 30Try it! 31------- 32 33You can deploy the example apps directly through Visual Studio IDE. 34Deployments can target both Android and iOS (both support physical device 35deployment as well as simulator). 36 37[helloworld.proto]:../../protos/helloworld.proto 38