Deleted all the Nuget packages in my local package

2019-01-12 11:06发布

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?

1条回答
倾城 Initia
2楼-- · 2019-01-12 11:49

Try this:

  1. Close Visual Studio.
  2. Run dotnet restore CMD command for your solution.
  3. Re-open Visual Studio.
查看更多
登录 后发表回答