C# install-package: "xx" already has dependencies defined for "xxx"

Maybe the version of nuget itself lags behind the version of the adapter package

Visual Studio 2013 Update NuGet Package Manager 

  • ØForeword   _

When downloading a program using the NuGet package manager in Visual Studio, sometimes an error like this may appear: 'Newtonsoft.Json' already has a defined dependency for 'NETStandard.Library'.

The effective way to solve this error is to update the NuGet package manager. The following takes Visual Studio Ultimate 2013 as an example to introduce the specific steps to update the NuGet package manager.

 

  1. 1.    Open Visual Studio 2013.
  2. 2.    Select Menu Bar -> Tools -> Extensions and Updates.
  3. 3.    Find the NuGet package manager in the "Installed" option and uninstall it, as shown in the figure:

 

  1. 4.    After uninstalling the NuGet package manager, restart Visual Studio and repeat step 2.
  2. 5.    Search for "NuGet" in the "Online" option, select NuGet Package Manager and click download. After the download is complete, it will be installed automatically, as shown in the figure:

 

  1. 6.    After the installation is complete, restart Visual Studio, OK, and you're done.

 

  • ØSummary   _

In fact, updating the NuGet package manager is a process of uninstalling and installing.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326271993&siteId=291194637