tag:help.appveyor.com,2012-11-13:/discussions/problems/4878-why-is-appveyor-failing-to-restore-nuget-packagesAppVeyor: Discussion 2018-10-19T08:17:55Ztag:help.appveyor.com,2012-11-13:Comment/401744512016-06-22T20:58:10Z2016-06-22T20:58:10ZWhy is appveyor failing to restore nuget packages?<div><p>My pre-build script cmd looks like this:</p>
<p>nuget.exe restore FrannHammer.Master.sln</p></div>Jordantag:help.appveyor.com,2012-11-13:Comment/401744512016-06-22T21:01:29Z2016-06-22T21:01:29ZWhy is appveyor failing to restore nuget packages?<div><p>Including <code>packages</code> folder into repo is not a good
idea.</p>
<p>Try deleting <code>packages</code> folder before nuget
restore:</p>
<pre>
<code>rd /s /q packages
nuget restore FrannHammer.Master.sln</code>
</pre></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/401744512016-06-22T21:15:34Z2016-06-22T21:15:35ZWhy is appveyor failing to restore nuget packages?<div><p>Yeah the packages folder should not have been there. I'm no
longer tracking it in the repo. Was able to make it much further,
but I still seem to be missing several packages that are restored
locally.</p>
<p>Thanks for your help.</p>
<p><a href="https://ci.appveyor.com/project/Frannsoft/frannhammer/build/1.0.4">
https://ci.appveyor.com/project/Frannsoft/frannhammer/build/1.0.4</a></p>
<p>The mahapps metro package is problematic, but I see nuget
restoring it in the log. This project also builds locally.</p></div>Jordantag:help.appveyor.com,2012-11-13:Comment/401744512016-06-22T21:18:31Z2016-06-22T21:18:31ZWhy is appveyor failing to restore nuget packages?<div><p>Open failing csproj files and check hint paths for broken
references.</p>
<p>If you need to reproduce the issue locally do a clean clone
(create a new empty folder and clone from remote repo) and then
repeat the same commands as on AppVeyor.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/401744512016-06-22T21:34:03Z2016-06-22T21:34:04ZWhy is appveyor failing to restore nuget packages?<div><p>Alright, got it built. Tests are next, but they were discovered
fine and I know what the issue is going to be with those.</p>
<p>I'm willing to be that Resharper's CTRL + '.' features to add
references caused stuff to be added without going through nuget
properly.</p>
<p>I fixed it and now things build and restore as expected.</p>
<p>Thanks again for your help.</p></div>Jordan