Can't seem to get nuget package restore working

JP Toto's Avatar

JP Toto

07 Nov, 2014 07:13 PM

Hello!

I followed the advice here http://www.appveyor.com/docs/nuget#nuget-restore 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. https://ci.appveyor.com/project/jptoto/log4net-elasticsearch/settings/build

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:

    install:
        - choco install elastic

    before_build:
    - nuget restore src\log4net.ElasticSearch.sln

    I seem to be getting this error. http://take.ms/5FNy6 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.

    -Feodor

  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

Generic

? 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

 

01 Oct, 2024 04:27 PM
26 Sep, 2024 03:49 PM
26 Sep, 2024 09:02 AM
25 Sep, 2024 07:07 PM
24 Sep, 2024 08:39 PM
24 Sep, 2024 06:47 AM