NuGet error restoring packages

P.Brian.Mackey

Suddenly today I click Rebuild on my sln and get...

Error (~10 similar errors):

Severity Code Description Project File Line Suppression State Error NuGet Package restore failed for project Core: Unable to find version '4.0.11' of package 'System.Diagnostics.Debug'.. 0

System.Diagnostics.Debug 4.0.11 exists.

Nuget version: 3.3.0.212

Other stuff:

  • At PM console: Install-Package System.Diagnostics.Debug -Version 4.0.11

Error:

Install-Package : Some NuGet packages are missing from the solution. The packages need to be restored in order to build the dependency graph. Restore the packages before performing any operations.

  • <RestorePackages> is not listed in the .sln. So I don't think this thing is configured the old way.
P.Brian.Mackey

This happened shortly after running windows update. I updated NuGet to 3.4 (from 3.3) and the issue resolved itself.

in Visual Studio > Tools > Extensions and Updates > Visual Studio Gallery > Nuget Package Manager > Update

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Visual Studio : Error occurred while restoring nuget packages : There are duplicate packages

Restoring NuGet packages to the cache

Visual Studio 2019 for Mac: Error when restoring or adding Nuget packages

Restoring NuGet packages to the latest version

NuGet restoring packages but missing DLLs

Error occurred while restoring NuGet packages: "Invalid restore input. No target frameworks specified."

How to remove the [warning]To connect to NuGet feeds when restoring NuGet packages

Build Error with NuGet packages

Jenkins not restoring NuGet packages with new MSBuild restore target

TeamCity not restoring NuGet packages from particular package source

How do I disable restoring NuGet packages while starting the solution

Problem with restoring nuget packages with asp.net core 2.2

AppHarbor build error with nuget packages

Restoring nuget packages of project with the http version of nuget.org using the dotnet cli

"Unable to find version" during TFS Build 2015 when restoring NuGet packages

TFS2012 build server not restoring NuGet packages from in-house repository

How to prevent UWP projects from restoring NuGet packages upon each Visual Studio session?

Restoring Nuget References?

Error Occured when trying to install NuGet Packages

Dependencies error while installing packages with NuGet

Newer versions of NuGet.exe can't resolve framework match when restoring older packages (net40, netframework40)

Command to use restoring npm packages

NuGet error during installing packages "Extensibility DTE object unavailable"

Unable to restore nuget packages with "WARNING: Invalid parameter" error

Cannot add or update NuGet packages, receiving NuGet V2 feed error

Error: The build restored NuGet packages. Build the project again to include these packages in the build. For more information

Restoring nuget packages of a solution in .net Rider IDE: Failed to download package `x` The HTTP request to GET `x` has timedout after 100000ms

Error in restoring backup of database

Error restoring Postgresql db