Build Cache - Ubuntu Image

Noelle Coleman's Avatar

Noelle Coleman

04 Jul, 2018 10:23 PM

During my build, I'm outputting all the dotnet nuget cache locations using:

dotnet nuget locals all --list

Resulting in the following

info : http-cache: /home/appveyor/.local/share/NuGet/v3-cache
info : global-packages: /home/appveyor/.nuget/packages/
info : temp: /tmp/NuGetScratch

My appveyor.yml has a cache section

  # NuGet packages cache
  - '~/.local/share/NuGet/v3-cache -> **\*.csproj'

But when running the build I see:

Updating build cache...
Cache entry not found: /home/appveyor/projects/my-project/~/.local/share/NuGet/v3-cache
Build completed

How can I get appveyor to cache the /home/appveyor/.local/share/NuGet/v3-cache folder?

  1. Support Staff 1 Posted by wasapl on 06 Jul, 2018 05:24 AM

    wasapl's Avatar


    As you can see in the output special sign ~ was not replaces with the actual path to home dir for some reason. Please try to replace ~ sign with $HOME variable:

      # NuGet packages cache
      - '$HOME/.local/share/NuGet/v3-cache -> ***.csproj'

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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