Simple. I installed Json.net using NuGet and when in the code I typed JsonConvert I excepted the auto complete options to kick in, but it didn't. I just typed the whole function by my self and got a bunch of errors saying it doesn't exist. I tried restarting Visual Studio but same results. What step am I missing?
Asked
Active
Viewed 390 times
0
-
1See this link : http://stackoverflow.com/questions/4444903/how-to-install-json-net-using-nuget – Anurag Jain Mar 07 '14 at 08:07
-
Probably "using" the namespace. But that's hard to tell. – nvoigt Mar 07 '14 at 08:07
-
2`using Newtonsoft.Json`? – Marco Mar 07 '14 at 08:08
-
What am I suppose to add in the using section? I'm lost. Oh wait I figured it out. Thank you! didn't realize I had to add it. – ZeroByter Mar 07 '14 at 08:13
-
See, as you said: Simple. – Marco Mar 07 '14 at 08:16
2 Answers
0
You can do this a couple of ways.
Via the "Solution Explorer"
Simply right-click the "References" folder and select "Manage NuGet Packages..." Once that window comes up click on the option labeled "Online" in the left most part of the dialog. Then in the search bar in the upper right type "json.net" Click "Install" and you're done. Via the "Package Manager Console"
Open the console. "View" > "Other Windows" > "Package Manager Console" Then type the following: Install-Package Newtonsoft.Json For more info on how to use the "Package Manager Console" check out the nuget docs.

Mr.kto
- 76
- 4
0
I think you may have forgot to include the following namespace:
using Newtonsoft.Json;

Wasif Hossain
- 3,900
- 1
- 18
- 20