Merge pull request #1036 from wing328/csharp_add_back_dll

[C#] add back RestSharp and Newtonsoft.Json DLL
This commit is contained in:
wing328 2015-07-31 15:56:21 +08:00
commit db10bd764b
4 changed files with 5 additions and 2 deletions

View File

@ -2,6 +2,9 @@
This generator creates C# code targeting the .Net 2.0 framework. The resulting DLLs can be used in places where .Net 2.0 is the maximum supported version, such as in the Unity3d. This generator creates C# code targeting the .Net 2.0 framework. The resulting DLLs can be used in places where .Net 2.0 is the maximum supported version, such as in the Unity3d.
## Compilation dependencies ## Dependencies
- Mono compiler - Mono compiler
- Note: NuGet is downloaded by the mono compilation script and packages are installed with it. No dependency DLLs are bundled with this generator. - Note: NuGet is downloaded by the mono compilation script and packages are installed with it. No dependency DLLs are bundled with this generator.

View File

@ -235,7 +235,7 @@ namespace IO.Swagger.Client
{ {
return JsonConvert.DeserializeObject(content, type); return JsonConvert.DeserializeObject(content, type);
} }
catch (IOException e) catch (Exception e)
{ {
throw new ApiException(500, e.Message); throw new ApiException(500, e.Message);
} }