{"action":"created","issue":{"url":"https://api.github.com/repos/NuGet/Home/issues/2078","repository_url":"https://api.github.com/repos/NuGet/Home","labels_url":"https://api.github.com/repos/NuGet/Home/issues/2078/labels{/name}","comments_url":"https://api.github.com/repos/NuGet/Home/issues/2078/comments","events_url":"https://api.github.com/repos/NuGet/Home/issues/2078/events","html_url":"https://github.com/NuGet/Home/issues/2078","id":132245386,"number":2078,"title":"project.json and workspace scoped packages","user":{"login":"theo-albers","id":9417380,"avatar_url":"https://avatars.githubusercontent.com/u/9417380?v=3","gravatar_id":"","url":"https://api.github.com/users/theo-albers","html_url":"https://github.com/theo-albers","followers_url":"https://api.github.com/users/theo-albers/followers","following_url":"https://api.github.com/users/theo-albers/following{/other_user}","gists_url":"https://api.github.com/users/theo-albers/gists{/gist_id}","starred_url":"https://api.github.com/users/theo-albers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theo-albers/subscriptions","organizations_url":"https://api.github.com/users/theo-albers/orgs","repos_url":"https://api.github.com/users/theo-albers/repos","events_url":"https://api.github.com/users/theo-albers/events{/privacy}","received_events_url":"https://api.github.com/users/theo-albers/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/NuGet/Home/milestones/18","html_url":"https://github.com/NuGet/Home/milestones/Discussions","labels_url":"https://api.github.com/repos/NuGet/Home/milestones/18/labels","id":1265556,"number":18,"title":"Discussions","description":"This milestone is intended for open and on going discussions.\r\n\r\nItems tracked here, may be spun off into Issues in one of the product milestone.","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":18,"closed_issues":3,"state":"open","created_at":"2015-08-21T00:44:46Z","updated_at":"2016-02-09T04:53:58Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2016-02-08T20:13:46Z","updated_at":"2016-02-10T11:06:24Z","closed_at":null,"body":"As described in this issue https://github.com/NuGet/Home/issues/1934, repositoryPath in .nuget.config is no longer working for C# projects that switched from packages.config to project.json. The alternative approach is to use an environment variable. \r\nToday we can't migrate our CSPROJ files to project.json, since we have internal NuGet packages as part of our Git repository in a local folder, see https://github.com/NuGet/Home/issues/782#issuecomment-159189537. Making life easier from a dependency perspective is great with the new project.json approach, see https://github.com/NuGet/Home/issues/1757. \r\nOur issue: we don't version NuGet packages we produce in our Git workspace as shared code, since that's cumbersome with the old packages.config setup. We can't switch to project.json since packages are cached in the USER-folder. A simple fix would be to allow using a workspace local package cache, just like the feature we had with .nugget.config repositoryPath. Setting environment variables is not a practical solution when switching Git branches. It's also impractical when using Visual Studio Online builds. Our future goal is to use NuGet feeds in VSO for our internal packages, but that's further down the line. \r\n\r\nSummary of the request: support repository cache path in global.json of the solution, comparable to .nuget.config. Alternatively respect repositoryPath from .nuget.config for backwards compatibility. Packages are great, but it can be cumbersome to retrofit in an existing solution, hence the request. "},"comment":{"url":"https://api.github.com/repos/NuGet/Home/issues/comments/182317825","html_url":"https://github.com/NuGet/Home/issues/2078#issuecomment-182317825","issue_url":"https://api.github.com/repos/NuGet/Home/issues/2078","id":182317825,"user":{"login":"theo-albers","id":9417380,"avatar_url":"https://avatars.githubusercontent.com/u/9417380?v=3","gravatar_id":"","url":"https://api.github.com/users/theo-albers","html_url":"https://github.com/theo-albers","followers_url":"https://api.github.com/users/theo-albers/followers","following_url":"https://api.github.com/users/theo-albers/following{/other_user}","gists_url":"https://api.github.com/users/theo-albers/gists{/gist_id}","starred_url":"https://api.github.com/users/theo-albers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theo-albers/subscriptions","organizations_url":"https://api.github.com/users/theo-albers/orgs","repos_url":"https://api.github.com/users/theo-albers/repos","events_url":"https://api.github.com/users/theo-albers/events{/privacy}","received_events_url":"https://api.github.com/users/theo-albers/received_events","type":"User","site_admin":false},"created_at":"2016-02-10T11:06:23Z","updated_at":"2016-02-10T11:06:23Z","body":"In your description there is a lot of build customization. I think a lot of developers would appreciate backwards compatibility when supporting repositoryPath in .nuget.config. Breaking the behaviour with a global package folder makes life more difficult when using multiple workspaces locally in my opinion. There is no clear benefit other than reduced disk space + network IO. It would be nice to opt in when leaving out the repositoryPath setting instead of breaking the behaviour. I'm pretty sure there are good reasons from an implementation perspective. It seems to me that .nuget.config is found in any case, so nuget might as well read the other settings as well."}}