OctopusDeploy/OctoPack — pull request #4 by jeff-french (2012-03-23 17:31:09+00:00)
Title: Add support for NuGet Package Restore.

When OctoPack is imported into a project from the packages directory and the project uses [NuGet Package Restore] (http://docs.nuget.org/docs/workflows/using-nuget-without-committing-packages). the project will fail to restore packages and build. This can be solved by following the same technique that NuGet uses which is to copy the targets file to a different directory that will be added to the source control repo.

I have update the Install.ps1 script to read the value of the RestorePackages variable from the project. If package restore is enabled then it copies the OctoPack.targets file to a .octopack directory under the solution. Otherwise it references the target file from its package directory as before.