Search code examples
c#nuget

Error: The build restored NuGet packages. Build the project again to include these packages in the build. For more information


When I build my project for the first time the build succeeds, but when I Publish the project, the build fails and I get several errors that say:

The build restored NuGet packages. Build the project again to include these packages in the build. For more information, see the below link http://www.postsharp.net/links/nuget-restore.

What does this mean? And what can I do?


Solution

  • Try run Build Solution and restart visual studio. It did the job for me.