Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

c#

nuget

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?

like image 758
Ayal Avatar asked Feb 18 '20 05:02

Ayal


2 Answers

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

like image 143
avi Avatar answered Nov 14 '22 16:11

avi


Cleaning the solution before rebuild fixed this for me.

like image 20
Mr. Flibble Avatar answered Nov 14 '22 18:11

Mr. Flibble