TIL: How to Fix the Missing Deps File in Visual Studio

After updating Visual Studio last week, I woke up with this error message: The local resource “C:/Some/Path/Somefile.Deps” doesn’t not exist.

None of the projects inside my solution compiled. I cleaned it, recompiled it, and even restarted Visual Studio. None of that worked.

The problem was a broken NuGet source left behind after running my digital decluttering plan.

To honor the 20-min rule, buried in this StackOverflow answer was the solution:

  1. List all the Nuget sources with dotnet nuget list source
  2. Remove the broken source with dotnet nuget remove source <source-name>

Et voilà!

Mastering your IDE is just one of the 30 lessons in Street-Smart Coding—the roadmap I wish I had on my journey from junior to senior.