When I tried to build my Solution, I got the following error in Visual Studio 2015. Error Occurred while restoring nuget packages..... there are duplicate packages....
. Because of this most of my assemblies in references
shows an Yellow Triangle and is not restored.
How to resolve the problem?
Restoring nuget packages can fail in multiple scenarios. In this particular case, it is because of duplicate packages
. If you read the full error message you will also find what package is present as duplicate.
To resolve this, open your packages.config
file and remove this duplicate package entry from that. Then try to Build
or Restore Nuget Packages
. Things should work fine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With