tag:support.appharbor.com,2010-11-23:/discussions/problems/35303-build-consistently-fails-due-to-nuget-errorAppHarbor: Discussion 2013-12-18T18:06:10Ztag:support.appharbor.com,2010-11-23:Comment/281130132013-08-05T16:28:15Z2013-08-05T16:28:15ZBuild Consistently fails due to NuGet error<div><p>Hi Joe,</p>
<p>I'd be a bit surprised if referencing the same file from
multiple projects would cause the error since each project should
be built indenpendently without affecting each other. However it's
not entirely unlikely and we'll make sure to investigate if that is
maybe the reason.</p>
<p>I'm wondering if disabling the NuGet cache would solve this
problem - disabling the cache has worked for other NuGet related
problems and may very well be a solution in this case as well. You
can see my answer <a href=
"http://support.appharbor.com/discussions/problems/24135-builds-failing-nuget-could-not-find-file#comment_26339553">
in this thread</a> for an example of how to do that.</p>
<p>Best,<br>
Rune</p></div>runetag:support.appharbor.com,2010-11-23:Comment/281130132013-08-06T13:56:16Z2013-08-06T13:56:16ZBuild Consistently fails due to NuGet error<div><p>The link you included is private so I cannot access it, however
I think I may have got it working by disabling the cache as
such:</p>
<p><code><RestoreCommand>$(NuGetCommand) install
"$(PackagesConfig)" -source "$(PackageSources)"
$(NonInteractiveSwitch) $(RequireConsentSwitch) -solutionDir
"$(SolutionDir) " -nocache </RestoreCommand></code></p>
<p>So far, the builds are succeeding, but more builds will need to
happen before I think I can call it fixed.</p></div>Joetag:support.appharbor.com,2010-11-23:Comment/281130132013-08-06T14:11:59Z2013-08-06T14:11:59ZBuild Consistently fails due to NuGet error<div><p>Alright got it - thanks for getting back to me with the results.
On a related note the new version of NuGet due next month will be
incorporated into AppHarbor's build infrastructure and will likely
solve these issues going forward.</p>
<p>Best,<br>
Rune</p></div>rune