The build restored NuGet packages. Build the project again to include these packages in the build

Viewed 1667

Error:

The build restored NuGet packages. Build the project again to include these packages in the build. For more information, see http://go.microsoft.com/fwlink/?LinkID=317568

I get this error while building code in Visual Studio 2017. As a workaround I have to clean the code and build again. Then I don't see this error. Every time O build this error comes back. I have to clean first and then build. Anyone having similar issue?enter image description here

2 Answers

Turning the comment from @sɐunıɔןɐqɐp into an answer

Run this command in the Package Manager Console

Update-Package -reinstall

Try to update "Microsoft.Bcl.Build" nuget package. This was the solution for me.

Related