tag:help.appveyor.com,2012-11-13:/discussions/problems/246-using-nuget-restoreAppVeyor: Discussion 2018-08-25T01:44:01Ztag:help.appveyor.com,2012-11-13:Comment/326705612014-04-23T08:54:51Z2014-04-23T08:54:55ZUsing nuget restore<div><p>Hi</p>
<p>I run nuget restore before each of my builds which pulls
packages down from nuget and out private myget feed.</p>
<p>This morning all of my builds are failing with a nuget operation
timeout</p>
<p>If i test the same process on my machine in the office all works
just fine.</p>
<p>Any ideas ?</p>
<p>Regards</p>
<p>Jonathan</p></div>jonathantag:help.appveyor.com,2012-11-13:Comment/326705612014-06-03T14:06:25Z2014-06-03T14:06:27ZUsing nuget restore<div><p>hi<br>
I'm just trying out appVeyor and getting the same<br>
We have a private nuget feed, so at first thebuild just failed<br>
then I added the feed creds, and the source (via settings >
install > ps) and nuget restore via build > before build<br>
It seems to get through the restore, but then hangs<br>
no detail from teh console, but I imagine its the nuget restore,
prompting for creds?<br>
all works locally and on a team city server</p>
<p>Any ideas of how to get any more info?</p></div>stevetag:help.appveyor.com,2012-11-13:Comment/326705612014-06-03T16:53:23Z2014-06-03T16:53:23ZUsing nuget restore<div><p>Yep, most probably it asks for credentials.</p>
<p>What commands have you used to add custom source with
credentials? We have some recommendations here: <a href=
"http://www.appveyor.com/docs/nuget#restore-private-feed">http://www.appveyor.com/docs/nuget#restore-private-feed</a></p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/326705612014-06-03T21:53:46Z2014-06-03T21:53:47ZUsing nuget restore<div><p>yep - found and followed them, so I have:<br>
nuget sources add -Name MyAccountFeed -Source <a href=
"https://www.myget.org/F/MyFeedUrl">https://www.myget.org/F/MyFeedUrl</a>
-UserName %nuget_user% -Password %nuget_password%</p></div>stevetag:help.appveyor.com,2012-11-13:Comment/326705612014-06-03T22:02:58Z2014-06-03T22:02:59ZUsing nuget restore<div><p>just to add, with that, if I add "nuget restore" as a powershell
before build step, it just hangs</p>
<p>If I dont have that setup, it fails the build when trying to
package restore. we have this setup in a nuget.targets file:<br>
C:\projects\Project.nuget\nuget.targets(43,9): error MSB3073: The
command ""C:\projects\Project.nuget\nuget.exe" install
"C:\projects\Project\MyProject\packages.config" -source "<a href=
"https://nuget.org/api/v2/;https://www.myget.org/f/myfeed&quot">https://nuget.org/api/v2/;https://www.myget.org/f/myfeed&quot</a>;
-o "C:\projects\Project\packages"" exited with code 1.
[C:\projects\Project\MyProject.csproj]</p>
<p>at least for a migration period, we'll need to keep our packages
on myget, so any help would be great</p></div>stevebaker2001tag:help.appveyor.com,2012-11-13:Comment/326705612014-06-04T16:27:55Z2014-06-04T16:27:55ZUsing nuget restore<div><p>Hi Steve,</p>
<p>Take a look at this thread: <a href=
"http://help.appveyor.com/discussions/problems/381-install-hangs">http://help.appveyor.com/discussions/problems/381-install-hangs</a></p>
<p>This is how-to from a customer who managed to solve the issue
with credentials. Hope that helps. Let me know if you have any
questions.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/326705612014-06-05T19:11:10Z2014-06-05T19:11:11ZUsing nuget restore<div><p>Hi - took a look and with nuget verbose figured it out<br>
I had added the feed with:<br>
<code>nuget sources add -Name MyFeedName</code> with the name of
the feed matching what we have in our nuget.targets<br>
changing it to use the feed url as the name as well solved it:</p>
<p><code>nuget sources add -Name
https://www.myget.org/F/myPrivateFeed</code></p>
<p>all working now - win!</p></div>stevebaker2001tag:help.appveyor.com,2012-11-13:Comment/326705612014-06-05T19:22:34Z2014-06-05T19:22:34ZUsing nuget restore<div><p>Great, thanks for the update! It's worth adding to "NuGet"
article in our docs. I'm going to re-visit all recent reports
related to NuGet to collect gotchas.</p></div>Feodor Fitsner