How to use appveyor build cache with .NET standard projects?

michael's Avatar


11 May, 2019 03:17 PM

Hi there,

I am experimenting with migrating a very simple .NET 4.5 project to .NET Standard.
I managed to get the test working and showing up, the NuGet package to be published etc.

One item is still missing. How can I cache the NuGet packages?
I used to do something like

packages -> **\packages.config

but there is no such file anymore for .net core/standard.

How would you advise to go about caching the NuGet package folder from now on?


  1. Support Staff 1 Posted by Owen McDonnell on 13 May, 2019 04:37 PM

    Owen McDonnell's Avatar

    Why not just use the csproj file as a cache dependency?

  2. 2 Posted by michael on 13 May, 2019 05:15 PM

    michael's Avatar

    Yeah that makes sense. I was hesitant to do that because I did not want the cache to be rebuilt everytime I add or remove a file. But of course, the list of files is not saved in the project anymore.


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