Error: The build restored NuGet packages. Build the project again to include these packages in the build. For more information
Try run Build Solution and restart visual studio. It did the job for me.
Cleaning the solution before rebild fixed this for me.