0

I created my first project and I am trying to work with JSON files. I am not able to see the tab of references in my Visual Studio. How can I retrieve the tab? I tried to Google and I cannot see the issue here.

This is my current Project Solution looks

enter image description here

[enter image description here]

[enter image description here]

3
  • add it from nuget Commented Feb 8, 2022 at 22:45
  • check the answers here - social.msdn.microsoft.com/Forums/en-US/… Commented Feb 8, 2022 at 22:45
  • its actually under dependencies now. Right click on it Commented Feb 8, 2022 at 23:04

2 Answers 2

1

Double click the project node in Solution Explorer, add the following, press ctrl + S. After a few seconds the package is downloaded and installed.

<ItemGroup>
    <PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
</ItemGroup>

You should also read up on using NuGet package manager in Visual Studio.

Sign up to request clarification or add additional context in comments.

6 Comments

Not the way I’d do it but hey if it works.. maybe add where to add it as project files are picky and brittle?
@stuartd agree, just thought this would get them going without having to deal with the conventional way for this time and hope they learn how to use either the command line tool or package manager in Visual Studio.
The nuget is downloaded but the acutal reference tab is not there, and the project does not find the reference of the newtonsoft.Json.
@Pablo_perico did you compile the project successfully then check to see if Newtonsoft.Json.dll is in the debug folder?
@KarenPayne yes, I compiled it without no issues. I am calling a REST API and I am trying to work with the JSON. It is werid as I see other people having this reference tab but i do not. Even if I create another empty project.
|
0

its here, right click on dependencies

enter image description here

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.