JSON.NET How To Reference?

后端 未结 4 1464
不知归路
不知归路 2020-12-09 15:52

I just installed the Json.Net package and now I am wondering how I can import this to my project? I first tried \"using Newtonsoft.Json;\" but that\'s not coming up. I tried

4条回答
  •  鱼传尺愫
    2020-12-09 16:28

    If you are doing this manually, right click on the "Reference" folder in your project's solution tree. Choose "Add Reference" -> "Browse" tab, locate Newtonsoft.Json.dll on your computer(You have to download this from the internet first) and add it as a reference to your project.

    If you are using NuGet, right click on the "Reference" folder in your project's solution tree and choose "Manage NuGet Packages", pick the "Online" tab, search for Json.Net and click "install".

提交回复
热议问题