NOTE: Although it known restarting Visual Studio sometimes resolves the issue.
If used, packages.config is typically located in a project root. It's automatically created when the first NuGet operation is run, but can also be created manually before running any commands such as nuget restore.
Projects that use PackageReference do not use packages.config.
Updating Visual Studio to VS 2019 16.11.5
Try to upgrade the NuGet Package Manager to 3.6 and restarted.
Package Manager Console( Tools -> NuGet Package Manager -> Package Manager Console)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.