{"action":"created","issue":{"url":"https://api.github.com/repos/NuGet/Home/issues/1096","labels_url":"https://api.github.com/repos/NuGet/Home/issues/1096/labels{/name}","comments_url":"https://api.github.com/repos/NuGet/Home/issues/1096/comments","events_url":"https://api.github.com/repos/NuGet/Home/issues/1096/events","html_url":"https://github.com/NuGet/Home/issues/1096","id":98667119,"number":1096,"title":"Overly aggressive caching for UWP","user":{"login":"bradwilson","id":16944,"avatar_url":"https://avatars.githubusercontent.com/u/16944?v=3","gravatar_id":"","url":"https://api.github.com/users/bradwilson","html_url":"https://github.com/bradwilson","followers_url":"https://api.github.com/users/bradwilson/followers","following_url":"https://api.github.com/users/bradwilson/following{/other_user}","gists_url":"https://api.github.com/users/bradwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/bradwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradwilson/subscriptions","organizations_url":"https://api.github.com/users/bradwilson/orgs","repos_url":"https://api.github.com/users/bradwilson/repos","events_url":"https://api.github.com/users/bradwilson/events{/privacy}","received_events_url":"https://api.github.com/users/bradwilson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NuGet/Home/labels/Area:VS.Client","name":"Area:VS.Client","color":"159818"},{"url":"https://api.github.com/repos/NuGet/Home/labels/Type:Bug","name":"Type:Bug","color":"207de5"}],"state":"open","locked":false,"assignee":{"login":"emgarten","id":6381138,"avatar_url":"https://avatars.githubusercontent.com/u/6381138?v=3","gravatar_id":"","url":"https://api.github.com/users/emgarten","html_url":"https://github.com/emgarten","followers_url":"https://api.github.com/users/emgarten/followers","following_url":"https://api.github.com/users/emgarten/following{/other_user}","gists_url":"https://api.github.com/users/emgarten/gists{/gist_id}","starred_url":"https://api.github.com/users/emgarten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emgarten/subscriptions","organizations_url":"https://api.github.com/users/emgarten/orgs","repos_url":"https://api.github.com/users/emgarten/repos","events_url":"https://api.github.com/users/emgarten/events{/privacy}","received_events_url":"https://api.github.com/users/emgarten/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/NuGet/Home/milestones/16","html_url":"https://github.com/NuGet/Home/milestones/3.1.2","labels_url":"https://api.github.com/repos/NuGet/Home/milestones/16/labels","id":1232564,"number":16,"title":"3.1.2","description":"3.1.2 client patch","creator":{"login":"emgarten","id":6381138,"avatar_url":"https://avatars.githubusercontent.com/u/6381138?v=3","gravatar_id":"","url":"https://api.github.com/users/emgarten","html_url":"https://github.com/emgarten","followers_url":"https://api.github.com/users/emgarten/followers","following_url":"https://api.github.com/users/emgarten/following{/other_user}","gists_url":"https://api.github.com/users/emgarten/gists{/gist_id}","starred_url":"https://api.github.com/users/emgarten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emgarten/subscriptions","organizations_url":"https://api.github.com/users/emgarten/orgs","repos_url":"https://api.github.com/users/emgarten/repos","events_url":"https://api.github.com/users/emgarten/events{/privacy}","received_events_url":"https://api.github.com/users/emgarten/received_events","type":"User","site_admin":false},"open_issues":17,"closed_issues":12,"state":"open","created_at":"2015-07-29T23:37:18Z","updated_at":"2015-08-06T22:01:52Z","due_on":"2015-08-12T07:00:00Z","closed_at":null},"comments":3,"created_at":"2015-08-03T04:05:13Z","updated_at":"2015-08-07T06:50:32Z","closed_at":null,"body":"I fell victim to overly aggressive caching twice today while working with UWP projects.\r\n\r\n## Package Update\r\n\r\nI was attempting to upgrade packages using the NuGet UI in VS 2015. NuGet clearly showed a new version of the package; it successfully installed into all my projects EXCEPT the UWP project. This is what it showed:\r\n\r\n![uwp package update](https://cloud.githubusercontent.com/assets/16944/9030559/30c38062-3959-11e5-9628-681f1a00858f.png)\r\n\r\nYou can clearly see that the NuGet UI is offering version 110, but NuGet refuses to install it into the UWP package because its cached data says it doesn't exist.\r\n\r\n## Package Restore\r\n\r\nThe second time I hit this was during package restore on a CI machine. All packages restored for non-UWP projects including the same versions of other packages; however, the UWP project refused to restore the package which was there (presumably again because of cache, though the NuGet 3.1 beta command line utility was not nearly as forthcoming as the VS UI was):\r\n\r\n```\r\nUnable to find version '2.1.0-beta4-build3106' of package 'xunit.runner.utility'\r\n```\r\n\r\nI logged into the CI machine and tried to run the solution-level restore by hand, using the `-nocache` flag, but even that wouldn't restore (it seems like the UWP restore ignores that flag). I had to manually install the package into the `packages` folder with a simple `nuget install`, which of course succeeded immediately; once the package was then in the local machine cache, the CI builds were allowed to succeed.\r\n\r\n## Conclusion\r\n\r\nWhatever package caching mechanism is in play is clearly: (a) too aggressive, (b) not in line with other NuGet restoration policies (the fact that UI finds the package and then refuses to download it and install it is mind boggling), (c) unable to be overridden by any mechanism.\r\n\r\nThis was an amazingly poor user experience."},"comment":{"url":"https://api.github.com/repos/NuGet/Home/issues/comments/128614470","html_url":"https://github.com/NuGet/Home/issues/1096#issuecomment-128614470","issue_url":"https://api.github.com/repos/NuGet/Home/issues/1096","id":128614470,"user":{"login":"neurospeech","id":2217983,"avatar_url":"https://avatars.githubusercontent.com/u/2217983?v=3","gravatar_id":"","url":"https://api.github.com/users/neurospeech","html_url":"https://github.com/neurospeech","followers_url":"https://api.github.com/users/neurospeech/followers","following_url":"https://api.github.com/users/neurospeech/following{/other_user}","gists_url":"https://api.github.com/users/neurospeech/gists{/gist_id}","starred_url":"https://api.github.com/users/neurospeech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neurospeech/subscriptions","organizations_url":"https://api.github.com/users/neurospeech/orgs","repos_url":"https://api.github.com/users/neurospeech/repos","events_url":"https://api.github.com/users/neurospeech/events{/privacy}","received_events_url":"https://api.github.com/users/neurospeech/received_events","type":"User","site_admin":false},"created_at":"2015-08-07T06:50:32Z","updated_at":"2015-08-07T06:50:32Z","body":"@yishaigalatzer this is not creating extra load, in fact all it does is routes query to new version which is used in UI, package is already available on UI and on website. Problem is NuGet is breaking build, one developer adds new package and is not available to other developers. Either package should not be available on UI or if it is available, it should be available everywhere."}}