nikhilk / scriptsharp

Script# Project - a C# to JavaScript compiler, to power your HTML5 and Node.js web development.
http://scriptsharp.com
Other
658 stars 182 forks source link

Fixed project dependencies #413

Closed olivierdagenais closed 3 years ago

olivierdagenais commented 10 years ago

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.