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. 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.


  3. michael closed this discussion on 31 Jan, 2020 09:57 PM.

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