Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2022 Project dependencies NuGetPackages won't load

enter image description here

Everything was working until I cleaned one project and then the NuGetPackages won't load. I've tried to clean the solution and all projects. I've also tried to build, rebuild, unload, load the projects. Then I removed .vs folder and restarted VS but noting worked. Then I repaired VS and still nothing worked.

I'm using VS 2022 17.0.0 Preview 4.1

like image 539
Emir Jasarevic Avatar asked Oct 22 '25 10:10

Emir Jasarevic


1 Answers

Check that your package sources are setup correctly. I noticed that after installing VS 2022 RC3 (maybe before that, but didn't notice until today) that my package sources had all been deleted.

  1. Tools->Options
  2. Nuget Package Manger->Package Sources
  3. Check for a source that points to: https://api.nuget.org/v3/index.json

If its not there, add one by clicking the "+" button near top right. Then update the "Name" and "Source" fields at the bottom, then click the "Update" button in the bottom right.

Screen Shot of Package Sources

like image 112
JeromeA Avatar answered Oct 25 '25 15:10

JeromeA



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!