Can't seem to get nuget package restore working

JP Toto's Avatar

JP Toto

07 Nov, 2014 07:13 PM


I followed the advice here and setup a specific task on the before build to restore nuget packages, pointing directly to my sln file. But from the log output, it doesn't seem to be working. It's a public project so should be visible.

Any help would be much appreciated!

  1. Support Staff 1 Posted by Feodor Fitsner on 07 Nov, 2014 08:19 PM

    Feodor Fitsner's Avatar

    Hi James,

    nuget restore should be added to appveyor.yml. When there is appveyor.yml found UI settings are mostly ignored, or better say "overridden" by YML.

  2. 2 Posted by JP Toto on 07 Nov, 2014 08:34 PM

    JP Toto's Avatar

    Thanks for the reply! When I try adding it to the yml file:

        - choco install elastic

    - nuget restore src\log4net.ElasticSearch.sln

    I seem to be getting this error. I can't tell what I'm doing wrong in the yml?

  3. Support Staff 3 Posted by Feodor Fitsner on 07 Nov, 2014 08:45 PM

    Feodor Fitsner's Avatar

    Make sure there are no tabs. Also, add new line at the end, just in case.


  4. 4 Posted by JP Toto on 07 Nov, 2014 08:51 PM

    JP Toto's Avatar

    I think tabs were the problem. Thank you!

  5. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:49 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac