tag:help.appveyor.com,2012-11-13:/discussions/problems/378-nuget-package-restore-doesnt-seem-to-work-with-multiple-package-sourcesAppVeyor: Discussion 2018-08-25T01:44:03Ztag:help.appveyor.com,2012-11-13:Comment/332299552014-06-02T15:33:45Z2014-06-02T15:33:45ZNuGet Package Restore doesn't seem to work with multiple package sources<div><p>Could you please add <a href=
"mailto:feodor@appveyor.com">feodor@appveyor.com</a> as
collaborator to your account?</p>
<ul>
<li>Feodor</li>
</ul></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/332299552014-06-02T16:41:11Z2014-06-02T16:41:13ZNuGet Package Restore doesn't seem to work with multiple package sources<div><p>Your message appears as:</p>
<p>"Could you please add [email blocked] as collaborator to your
account?"</p></div>David Pfeffertag:help.appveyor.com,2012-11-13:Comment/332299552014-06-02T16:48:02Z2014-06-02T16:48:02ZNuGet Package Restore doesn't seem to work with multiple package sources<div><p>Sorry, it's feodor AT appveyor DOT com</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/332299552014-06-02T17:42:21Z2014-06-02T17:42:23ZNuGet Package Restore doesn't seem to work with multiple package sources<div><p>Done.</p></div>David Pfeffertag:help.appveyor.com,2012-11-13:Comment/332299552014-06-02T18:05:38Z2014-06-02T18:05:38ZNuGet Package Restore doesn't seem to work with multiple package sources<div><p>In what place do you have configured alternate source for
NuGet?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/332299552014-06-02T18:43:57Z2014-06-02T18:43:57ZNuGet Package Restore doesn't seem to work with multiple package sources<div><p>.nuget\nuget.config</p></div>David Pfeffertag:help.appveyor.com,2012-11-13:Comment/332299552014-06-02T18:51:13Z2014-06-02T18:51:13ZNuGet Package Restore doesn't seem to work with multiple package sources<div><p>Hm...I see. My guess would be <code>nuget restore</code> doesn't
not pick up sources from that config file. '.nuget' folder is for
VS-based NuGet restore. I would try the following:</p>
<p>1) remove <code>nuget restore</code> command and rely on VS
restore during the build (AppVeyor already sets NuGet restore
consent variable).</p>
<p>2) explicitly specify all sources (<code>-Source</code>
parameter) in <code>nuget restore</code> command.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/332299552014-06-02T18:52:28Z2014-06-02T18:52:28ZNuGet Package Restore doesn't seem to work with multiple package sources<div><p>Also, I did notice AppVeyor runs builds not in the same order
they were submitted. I'm going to fix this problem and deploy
update...</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/332299552014-06-02T20:21:21Z2014-06-02T20:21:22ZNuGet Package Restore doesn't seem to work with multiple package sources<div><p>Actually, it definitely uses the configuration file. If I remove
the<br>
nuget.org repo or change the order, it fails to build because it
cannot<br>
find all the standard packages (only the ones on the myget.org repo
are<br>
then found.)</p></div>David Pfeffertag:help.appveyor.com,2012-11-13:Comment/332299552014-06-02T23:49:05Z2014-06-02T23:49:05ZNuGet Package Restore doesn't seem to work with multiple package sources<div><p>OK, let's continue. We are not giving up on you yet! :)</p>
<p>Is that alternate NuGet feed public, can I play with it?</p>
<p>Another thing to try is to do a small fake project just to test
how packages are being downloaded. Disable build and test stages
and then use <code>nuget install
<package-from-alternate-feed> -Source
<alternate-feed></code> as a build script.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/332299552014-06-03T01:22:28Z2014-06-03T01:22:28ZNuGet Package Restore doesn't seem to work with multiple package sources<div><p>Yes, its the Microsoft ASP.NET nightly build myget.org feed:</p>
<p><a href=
"https://www.myget.org/F/aspnetwebstacknightly/">https://www.myget.org/F/aspnetwebstacknightly/</a></p></div>David Pfeffertag:help.appveyor.com,2012-11-13:Comment/332299552014-06-03T01:35:37Z2014-06-03T01:35:37ZNuGet Package Restore doesn't seem to work with multiple package sources<div><p>OK, great. Can you also share your nuget.config and
packages.config - I'd like to build a small project to reproduce
scenario?</p>
<ul>
<li>Feodor</li>
</ul></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/332299552014-06-03T02:21:22Z2014-06-03T02:21:23ZNuGet Package Restore doesn't seem to work with multiple package sources<div><p>Here's both!</p></div>David Pfeffertag:help.appveyor.com,2012-11-13:Comment/332299552014-06-03T04:03:14Z2014-06-03T04:03:14ZNuGet Package Restore doesn't seem to work with multiple package sources<div><p>OK, great. Will give it a try tomorrow and let you know about
the results.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/332299552014-06-03T23:34:32Z2014-06-03T23:34:32ZNuGet Package Restore doesn't seem to work with multiple package sources<div><p>OK, I managed to reproduce the problem locally. It's the package
in question which does not exists in that feed. See attached
screenshots.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/332299552014-06-06T13:16:30Z2014-06-06T13:16:31ZNuGet Package Restore doesn't seem to work with multiple package sources<div><p>Where did that packages.txt file come from?</p>
<p>If you add the NuGet repository we're using from <a href=
"https://www.myget.org/gallery/aspnetwebstacknightly/">https://www.myget.org/gallery/aspnetwebstacknightly/</a>
to your local machine, nuget is able to find that package.</p></div>David Pfeffertag:help.appveyor.com,2012-11-13:Comment/332299552014-06-06T13:28:25Z2014-06-06T13:28:26ZNuGet Package Restore doesn't seem to work with multiple package sources<div><p>Here's an example of this working in <code>Works.PNG</code>. The
<code>nuget.config</code> file and <code>packages.config</code> is
exactly the same as what I sent to you.</p></div>David Pfeffertag:help.appveyor.com,2012-11-13:Comment/332299552014-06-06T14:11:19Z2014-06-06T14:11:19ZNuGet Package Restore doesn't seem to work with multiple package sources<div><p>Nevermind, got it.</p></div>David Pfeffertag:help.appveyor.com,2012-11-13:Comment/332299552014-06-06T14:13:43Z2014-06-06T14:13:43ZNuGet Package Restore doesn't seem to work with multiple package sources<div><p>Fixed it or was able to reproduce error?</p>
<ul>
<li>Feodor</li>
</ul></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/332299552014-06-06T16:51:03Z2014-06-06T16:51:03ZNuGet Package Restore doesn't seem to work with multiple package sources<div><p>Yes, I got that list by running <code>nuget list</code> command
against that feed.</p>
<p>Btw, make sure you don't have that package locally cached
<code>%LocalAppData%\NuGet\Cache</code></p></div>Feodor Fitsner