Disclaimer: I am a consultant at Amazon Web Services, and this is my personal blog. The opinions expressed here are solely mine and do not reflect the views of Amazon Web Services (AWS). Any statements made should not be considered official endorsements or statements by AWS.
You may be facing this issue when working with recently installed Visual Studio.
By default, Visual Studio comes with only one source of NuGet package, which is Microsoft Visual Studio Offline Packages. See the below picture.
To fix this issue, just add one more NuGet package source with the below values.
That's all :)