Visual Studio 2019 has many confusing messages and below is one of them. After attempting to build a class library, I got this error:
NuGet package restore failed. Please see Error List window for detailed warnings and errors.Error occurred while restoring NuGet packages: An item with the same key has already been added.1>SharedLogging -> C:\SharedLogging\bin\Release\net5.0\SharedLogging.dll========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
I know the dll has been built (I can see the file), but what's up with the Error occurred message?
And yes, like many others out there, I went to the Error List, there was nothing there!And yes, I checked the dependencies for duplicate libraries. With that said, the error seems to come from an in-house library which I have verified that it has no similar error.
Does anyone know what's going on here? I have been working on this for the past 2 days.
NOTEMaybe it's worth to mention that the project that produces the in-house NuGet library used to be reference via Add Project Reference.