{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/dnx/issues/3206","labels_url":"https://api.github.com/repos/aspnet/dnx/issues/3206/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/dnx/issues/3206/comments","events_url":"https://api.github.com/repos/aspnet/dnx/issues/3206/events","html_url":"https://github.com/aspnet/dnx/issues/3206","id":118885407,"number":3206,"title":"Paths in global.json using \"..\" fail when dnu restore is invoked from parent directory","user":{"login":"jskeet","id":17011,"avatar_url":"https://avatars.githubusercontent.com/u/17011?v=3","gravatar_id":"","url":"https://api.github.com/users/jskeet","html_url":"https://github.com/jskeet","followers_url":"https://api.github.com/users/jskeet/followers","following_url":"https://api.github.com/users/jskeet/following{/other_user}","gists_url":"https://api.github.com/users/jskeet/gists{/gist_id}","starred_url":"https://api.github.com/users/jskeet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jskeet/subscriptions","organizations_url":"https://api.github.com/users/jskeet/orgs","repos_url":"https://api.github.com/users/jskeet/repos","events_url":"https://api.github.com/users/jskeet/events{/privacy}","received_events_url":"https://api.github.com/users/jskeet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-25T17:23:14Z","updated_at":"2015-11-27T06:29:10Z","closed_at":null,"body":"Detailed scenario I'm trying to solve is described [on Stack Overflow](http://stackoverflow.com/questions/33919272).\r\n\r\nFundamentally, I'd like to be able to use a dependency on a project in a local \"peer solution\" - and I thought I'd use `global.json` to do so, like this:\r\n\r\n```\r\n{\r\n  \"projects\": [ \"src\", \"test\", \"../Common/src\" ],\r\n  \"sdk\": { \"version\": \"1.0.0-rc1-final\" }\r\n}\r\n```\r\n\r\nThat appears to work when invoking `dnu restore` from the solution directory (or lower) but not from the *parent* directory.\r\n\r\nRepro:\r\n\r\n- Download https://www.dropbox.com/s/fhwz4579kg1bktd/dnxbug.zip?dl=0\r\n- `unzip dnxbug.zip`\r\n- `cd dnxbug/Application`\r\n- `dnu restore`\r\n- Hooray, all is well!\r\n- `cd ..`\r\n- `dnu restore`\r\n- Boo - fails with \"Unable to locate Dependency Common.Library >= 0.0.0-*\"\r\n"},"comment":{"url":"https://api.github.com/repos/aspnet/dnx/issues/comments/160051976","html_url":"https://github.com/aspnet/dnx/issues/3206#issuecomment-160051976","issue_url":"https://api.github.com/repos/aspnet/dnx/issues/3206","id":160051976,"user":{"login":"jskeet","id":17011,"avatar_url":"https://avatars.githubusercontent.com/u/17011?v=3","gravatar_id":"","url":"https://api.github.com/users/jskeet","html_url":"https://github.com/jskeet","followers_url":"https://api.github.com/users/jskeet/followers","following_url":"https://api.github.com/users/jskeet/following{/other_user}","gists_url":"https://api.github.com/users/jskeet/gists{/gist_id}","starred_url":"https://api.github.com/users/jskeet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jskeet/subscriptions","organizations_url":"https://api.github.com/users/jskeet/orgs","repos_url":"https://api.github.com/users/jskeet/repos","events_url":"https://api.github.com/users/jskeet/events{/privacy}","received_events_url":"https://api.github.com/users/jskeet/received_events","type":"User","site_admin":false},"created_at":"2015-11-27T06:29:10Z","updated_at":"2015-11-27T06:29:10Z","body":"Given the answer on Stack Overflow, it seems the problem isn't that the `projects` property isn't being handled properly - it's that `global.json` isn't being read at all, because I'm calling `dnu restore` from a parent directory.\r\n\r\nSo, this may be working as intended - but it's pretty confusing :) I had expected that running `dnu restore` would be recursive as if I'd run `dnu restore Common` and then `dnu restore Application` (ideally working out the ordering of that itself). But if `dnu restore` only looks *up* the tree for `global.json` files, that's clearly not going to help. Perhaps when it's recursing *down* the tree it should look for `global.json` files as well as `project.json`?\r\n\r\nNot sure what you want to do with this issue now..."}}