I deleted all the files and folders inside C:\Users\myself\.nuget\packages
and now all my .NET Core
projects complain that System
or Void
or anything primitive can't be found. Tried the following
- Nuget.exe -restore c:\path\to\myslnfile.sln -PackagesDirectory C:\Users\myself\.nuget\packages
- Building the solution
- Creating a new project (new projects complain the same thing)
What do I do now?
Try this:
dotnet restore
CMD command for your solution.