on 26 Sep, 2018 10:57 AM
project.lock.json is dead. In .NET Core today the dotnet cli outputs obj/project.assets.json, but these files cannot be tracked by GIT, or used in cache expressions in appveyor.yml.
I am using PackageReference in old csproj and also the new SDK csproj (also beased on PackageReference nuget model). Both use the global cache, as described above.
Your documentation about caching nuget packages, only describe the old packages.config Nuget model. That is why I am asking for the best way to speed up nuget restore times on the build, if not using packages.config
I agree with your answer in this thread that it doesn't make sense to declare a cache dependency on the nuget global cache folder/tree. I was simply trying to answer the question I thought you were asking ("these files cannot be... used in cache expressions in appveyor.yml").
Sure you can cache folders outside the clone directory.