{"action":"created","issue":{"url":"https://api.github.com/repos/NuGet/Home/issues/1256","labels_url":"https://api.github.com/repos/NuGet/Home/issues/1256/labels{/name}","comments_url":"https://api.github.com/repos/NuGet/Home/issues/1256/comments","events_url":"https://api.github.com/repos/NuGet/Home/issues/1256/events","html_url":"https://github.com/NuGet/Home/issues/1256","id":103146693,"number":1256,"title":"Better handling of restore in VS with floating versions","user":{"login":"onovotny","id":1427284,"avatar_url":"https://avatars.githubusercontent.com/u/1427284?v=3","gravatar_id":"","url":"https://api.github.com/users/onovotny","html_url":"https://github.com/onovotny","followers_url":"https://api.github.com/users/onovotny/followers","following_url":"https://api.github.com/users/onovotny/following{/other_user}","gists_url":"https://api.github.com/users/onovotny/gists{/gist_id}","starred_url":"https://api.github.com/users/onovotny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onovotny/subscriptions","organizations_url":"https://api.github.com/users/onovotny/orgs","repos_url":"https://api.github.com/users/onovotny/repos","events_url":"https://api.github.com/users/onovotny/events{/privacy}","received_events_url":"https://api.github.com/users/onovotny/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NuGet/Home/labels/Type:Feature","name":"Type:Feature","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/NuGet/Home/milestones/12","html_url":"https://github.com/NuGet/Home/milestones/Client-VNext","labels_url":"https://api.github.com/repos/NuGet/Home/milestones/12/labels","id":1107554,"number":12,"title":"Client-VNext","description":"This is the place of the issues we intend to consider in one of the future versions.\r\n\r\nPlacing an issue here does not mean we intend to act on it, it means it looks promising enough to have a deeper dive into it, or that we don't have it planned for the current or one of the planned future releases.","creator":{"login":"yishaigalatzer","id":1238711,"avatar_url":"https://avatars.githubusercontent.com/u/1238711?v=3","gravatar_id":"","url":"https://api.github.com/users/yishaigalatzer","html_url":"https://github.com/yishaigalatzer","followers_url":"https://api.github.com/users/yishaigalatzer/followers","following_url":"https://api.github.com/users/yishaigalatzer/following{/other_user}","gists_url":"https://api.github.com/users/yishaigalatzer/gists{/gist_id}","starred_url":"https://api.github.com/users/yishaigalatzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yishaigalatzer/subscriptions","organizations_url":"https://api.github.com/users/yishaigalatzer/orgs","repos_url":"https://api.github.com/users/yishaigalatzer/repos","events_url":"https://api.github.com/users/yishaigalatzer/events{/privacy}","received_events_url":"https://api.github.com/users/yishaigalatzer/received_events","type":"User","site_admin":false},"open_issues":90,"closed_issues":2,"state":"open","created_at":"2015-05-12T21:08:40Z","updated_at":"2015-10-20T21:31:31Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-08-26T00:56:23Z","updated_at":"2015-10-20T22:12:36Z","closed_at":null,"body":"Right now if a solution has any projects with floating versions, the NuGet restore process happens on **every** build. This is a huge annoyance as it greatly slows down the build process.\r\n\r\nInstead, I propose the following logic:\r\n1.  A Rebuild should always run restore and check for new versions\r\n2.  Build/F5/Clean-Build should not check for new versions. The thing to keep in mind is that versions don't usually change _that_ often. Adding the following options to VS should address when Build triggers a new version check\r\n  -  First build after opening a solution (default: yes)\r\n  -  After switching solution/platform configuration (default: no -- unless absolutely required for correct functionality) \r\n  - Every build (default: no) - for people that really want it for CI, etc\r\n  - Every x hours (default: no) - not sure this is needed when a rebuild could have the same effect\r\n"},"comment":{"url":"https://api.github.com/repos/NuGet/Home/issues/comments/149717719","html_url":"https://github.com/NuGet/Home/issues/1256#issuecomment-149717719","issue_url":"https://api.github.com/repos/NuGet/Home/issues/1256","id":149717719,"user":{"login":"onovotny","id":1427284,"avatar_url":"https://avatars.githubusercontent.com/u/1427284?v=3","gravatar_id":"","url":"https://api.github.com/users/onovotny","html_url":"https://github.com/onovotny","followers_url":"https://api.github.com/users/onovotny/followers","following_url":"https://api.github.com/users/onovotny/following{/other_user}","gists_url":"https://api.github.com/users/onovotny/gists{/gist_id}","starred_url":"https://api.github.com/users/onovotny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onovotny/subscriptions","organizations_url":"https://api.github.com/users/onovotny/orgs","repos_url":"https://api.github.com/users/onovotny/repos","events_url":"https://api.github.com/users/onovotny/events{/privacy}","received_events_url":"https://api.github.com/users/onovotny/received_events","type":"User","site_admin":false},"created_at":"2015-10-20T22:12:36Z","updated_at":"2015-10-20T22:12:36Z","body":"That workaround is really not acceptable. It's too easy for users to forget to hit restore on *every* solution. If the \"off\" setting were applicable to a single solution, then that's one thing. As it applies to VS all-up, it's not."}}