For more information, please visit [https://www.grin-global.org](https://www.grin-global.org)
## Frameworks supported
- .NET 4.0 or later
- Windows Phone 7.1 (Mango)
## Dependencies
-[RestSharp](https://www.nuget.org/packages/RestSharp) - 105.1.0 or later
-[Json.NET](https://www.nuget.org/packages/Newtonsoft.Json/) - 7.0.0 or later
-[JsonSubTypes](https://www.nuget.org/packages/JsonSubTypes/) - 1.2.0 or later
The DLLs included in the package may not be the latest version. We recommend using[NuGet](https://docs.nuget.org/consume/installing-nuget) to obtain the latest version of the packages:
The DLLs included in the package may not be the latest version. Use[NuGet](https://docs.nuget.org/consume/installing-nuget) to obtain the latest version of the packages:
NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See [RestSharp#742](https://github.com/restsharp/RestSharp/issues/742)
## Installation
Run the following command to generate the DLL
- [Mac/Linux] `/bin/sh build.sh`
- [Windows] `build.bat`
Then include the DLL (under the `bin` folder) in the C# project, and use the namespaces:
```csharp
usingGRINGlobal.Client.Api;
usingGRINGlobal.Client.Client;
usingGRINGlobal.Client.Model;
```
## Packaging
A `.nuspec` is included with the project. You can follow the Nuget quickstart to [create](https://docs.microsoft.com/en-us/nuget/quickstart/create-and-publish-a-package#create-the-package) and [publish](https://docs.microsoft.com/en-us/nuget/quickstart/create-and-publish-a-package#publish-the-package) packages.
This `.nuspec` uses placeholders from the `.csproj`, so build the `.csproj` directly:
```
nuget pack -Build -OutputDirectory out GRINGlobal.Client.csproj
```
Then, publish to a [local feed](https://docs.microsoft.com/en-us/nuget/hosting-packages/local-feeds) or [other host](https://docs.microsoft.com/en-us/nuget/hosting-packages/overview) and consume the new package via Nuget as usual.
## Getting Started
```csharp
...
...
@@ -77,8 +35,11 @@ namespace Example
{
publicstaticvoidMain()
{
// Base path should point to your instance of GG-CE server