The ZipX project consumes the output of Node.Restify and Node.Azure, so checked the corresponding checkboxes in Project > Project Dependencies.... Without this change, there's a race condition that means the build will fail on first run (like it did for me):
(...)
Attempting to build package from 'Lib.Node.Restify.nuspec'.
File not found: '..\..\..\bin\Release\Script.Node.Restify.dll'.
%USERPROFILE%\Documents\GitHub\scriptsharp\src\ZipX\ZipX.csproj(86,5): error MSB3073: The command "..\..\tools\bin\nuget pack Packages\Lib.Node.Restify.nuspec -OutputDirectory ..\..\bin\Zip\Packages -NoPackageAnalysis" exited with code 1.
------ Build started: Project: Node.Restify, Configuration: Release Any CPU ------
Node.Restify -> %USERPROFILE%\Documents\GitHub\scriptsharp\bin\Release\Script.Node.Restify.dll
------ Build started: Project: Node.Azure, Configuration: Release Any CPU ------
Node.Azure -> %USERPROFILE%\Documents\GitHub\scriptsharp\bin\Release\Script.Node.Azure.dll
(...)
...or the NuGet packages will contain stale binaries.
The ZipX project consumes the output of Node.Restify and Node.Azure, so checked the corresponding checkboxes in Project > Project Dependencies.... Without this change, there's a race condition that means the build will fail on first run (like it did for me):
...or the NuGet packages will contain stale binaries.