Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add->REST API Client... command fails in VS2015

I want to add a RESTful API to my UWP project. But I get the following error in VS2015 when clicking OK in the Add->REST API Client dialog:

Generating client code and adding to project started
Generate client code for REST API with following parameters:
REST API Name: XXXXXX, Base namespace: XXXXXX, Metadata file path: C:\Users\XXXX\AppData\Local\Temp\WebToolsAutoRest\XXXXXX\201612291330467450\swagger.json
Exception: Could not load file or assembly 'Newtonsoft.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified.
Generating client code and adding to project failed
Adding REST API client for failed

I found someone facing the same problem here. But it seems he didn't find a solution to this problem. Ant pointers?

Thanks in advance.

like image 644
Yanbo Chen Avatar asked Dec 29 '16 05:12

Yanbo Chen


1 Answers

I was seeing the same thing too on vs2015 (I only have 2015 installed though). Apparently the work around is to copy and paste the Newtonsoft.Json.dll into the folder path C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE

I made sure to download the 7.0.1 version using NuGet.

https://github.com/Azure/azure-sdk-for-net/issues/2587

like image 158
Manny Villa Avatar answered Sep 30 '22 05:09

Manny Villa