Can not add a nuget package in visual studio 2015 web api project RRS feed

  • Question

  • I am not able to add a simple nuget package in Visual Studio 2015 Web API project.

    I have Visual Studio 2015 Professional Update 1.

    Following are the steps I am following:

    Created a new ASP .NET Web Application project with "Web API" template from ASP.NET 5 templates.
    As soon as I get the project created my solution explorer show 2 DNX references. (i) DNX 4.5.1 (ii) DNX Core 5.0
    Now I right click on project name and click "Manage Nuget Packages".
    I search for JSON package and I see "Newtonsoft.Json" in the results. And I go ahead and select "Latest stable 8.0.2" version and hit install.
    Result: Not able to add package:

    And this is one of last few lines in the output window "Unable to locate Dependency Newtonsoft.Json >= 8.0.2"

    Errors windows says something different"

    Error NU1001 The dependency Newtonsoft.Json >= 6.0.6 could not be resolved.

    Would be great if someone can help.

    FYI: my project.json looks like this:

    Regards, Randeep

    Saturday, January 9, 2016 11:04 AM