There are plenty of ways to restore missing nuget packages. In many cases you might just want to copy packages from one project to another. The easiest way to copy packages from 1 project to another is by using the below command:
Update-Package -Reinstall -ProjectName <ProjectName>
where <ProjectName> is the name of your project.
Second, if you want to restore packages in the entire solution is, you have to omit -ProjectName in the above command like so:
And that’s it, as simple as that. I have encountered this many times already and I have to take note of the command by making a post about it. Through this I can just simply look into my blog and wallaaaahhh, there it is.