I have been trying to work on the weather forecast example with swagger in VS 2019 16.8, but when I build the Web API solution after setting up getting error on the NuGet packages for the solution, have tried removing the dependencies for nuget the commenting out code, but results in 404 for the Swagger input opening page.
The project was creating according to the msdn article : https://docs.microsoft.com/en-us/aspnet/core/tutorials/first-web-api?view=aspnetcore-5.0&tabs=visual-studio
Normal apps without nuget package are working fine, but solution involving nuget package are not working properly even if package are tried to add from the package manager console (getting the 404 error).
Added nuget.org as source also and then performed the search but not getting any nuget package properly in visual studio 2019 Version 16.8.1.Nuget Error Message
Added screenshot of the issue explained for reference.
Any expert advice is highly appreciated.