Assets File Project.assets.json Not Found. Run A NuGet Package Restore


Answer :

To fix this error from Tools > NuGet Package Manager > Package Manager Console simply run:

dotnet restore 

The error occurs because the dotnet cli does not create the all of the required files initially. Doing dotnet restore adds the required files.


In my case the error was the GIT repository. It had spaces in the name, making my project unable to restore

If this is your issue, just rename the GIT repository when you clone

git clone http://Your%20Project%20With%20Spaces newprojectname 

In case when 'dotnet restore' not works, following steps may help:

  1. Visual Studio >> Tools >> Options >> Nuget Manager >> Package Sources
  2. Unchecked any third party package sources.
  3. Rebuild solution.

Comments

Popular posts from this blog

Are Regular VACUUM ANALYZE Still Recommended Under 9.1?

Can Feynman Diagrams Be Used To Represent Any Perturbation Theory?