Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
According to Alan, this is not the right location to store NuGet Cache .nupkg files.
It's storing them here:
Checked, NuGet Cache is storing at ~/.local/Share/NuGet/Cache/
Screencast for this: http://www.screencast.com/t/FjBDSqa5
Xamarin Studio Version 5.0 (build 876)
Git revision: 892675cba83be2d00954bfdf22dd8a29e6a47502
Xamarin addins: c62ebd0f0c296c5773c7b92ad06d5b5b487f40e8
Where should NuGet be storing the cache on the Mac?
Currently the default location is taken from Environment.SpecialFolder.LocalApplicationData which maps to:
Well, currently it looks like a lot of things cached on mac get stored here:
~/Library/Caches/Xamarin/ (eg: Components are cached in ~/Library/Caches/Xamarin/Components/)
So NuGet should be using something like:
Whilst I can change NuGet that ships with Xamarin Studio the official NuGet.exe is another problem. If anyone uses that version it will still be using the old location (~/.local/share/NuGet/Cache). So we would have two NuGet caches.
NuGet does support an NuGetCache environment variable which can be used to override the default location of the cache which would affect all versions of NuGet. The change itself seems to have been there since 2011 so it should be in most versions of NuGet. Not sure if that helps us though.
If this is just a default location that nuget uses, either we keep using it or we get nuget upstream to do the right thing.
~/Library/Caches is the right place to put caches, so it's up to them to fix their stuff. Should this just be marked as Resolved/upstream? Does anyone want to raise the topic with them?
Yes, Xamarin Studio is just using the default location that NuGet uses.
I think the best way to move this forward is to create a patch and see if we can get the NuGet team to accept it. I nominate myself to do this :)
What is this marked NEEDINFO for?
> I nominate myself to do this :)
Matt, did you get around to this?
No. The location can be configured. I think it is too late for this change now.
NuGet v2 uses ~/.local/share/cache/packages
NuGet v3, NuGet v4 and .NET Core use ~/.nuget/NuGet/packages
The default location can be overridden by setting the NUGET_PACKAGES environment variable for NuGet v3 and v4. With NuGet v2 the NuGetCachePath environment variable can be used.
Thanks for the info.