for some reason vs2019 keep failing to restore packages. i changed my nuget package settings to "http://api.nuget.org/v3/index.json" and I was able to download the packages necessary. Now all of a sudden when i try to update or download any other packages i get "failed to restore packages".
The error happens when I add a razor index page and when it tried to scaffold then download the nuget package.