Octopack cannot be run because Nuget Packages were restored prior to build

Hi,

I have this known issue but i don’t understand why :

OctoPack cannot be run because NuGet packages were restored prior to the build running, and the targets file was unavailable when the build started. Please build the project again to include these packages in the build. You may also need to make sure that your build server does not delete packages prior to each build. For more information, see http://go.microsoft.com/fwlink/?LinkID=317568.

I use Team Build TFS 2010 to build 4 solutions . OctoPack is installed for one project inside one of the solutions .
This is a web application . I just installed octopack package in one project .

Do you have any idea ?

Thanks a lot

Hi Issou,

Thanks for getting in touch! Sorry for the delay in getting back to you. This occurs when the packages aren’t available during the build.
It can be fixed using the following: http://docs.nuget.org/consume/package-restore/team-build

Hope that helps!
Vanessa

We have TFS 2012 with Octopus 2.6. Our build server is cleaning up its work folder. In MSBuild, I set the parameter “Clean Workspace” to “Outputs”. It worked like a breeze. If you had to clear the work folders, you need to submit deployment twice : first with Clean Workspace=All, then Clean Workspace=Outputs.