{"action":"created","issue":{"url":"https://api.github.com/repos/fsharp/FAKE/issues/1956","repository_url":"https://api.github.com/repos/fsharp/FAKE","labels_url":"https://api.github.com/repos/fsharp/FAKE/issues/1956/labels{/name}","comments_url":"https://api.github.com/repos/fsharp/FAKE/issues/1956/comments","events_url":"https://api.github.com/repos/fsharp/FAKE/issues/1956/events","html_url":"https://github.com/fsharp/FAKE/issues/1956","id":325198026,"number":1956,"title":"Issues with relative paths when using fake-cli or chocolatey","user":{"login":"kblohm","id":38011792,"avatar_url":"https://avatars2.githubusercontent.com/u/38011792?v=4","gravatar_id":"","url":"https://api.github.com/users/kblohm","html_url":"https://github.com/kblohm","followers_url":"https://api.github.com/users/kblohm/followers","following_url":"https://api.github.com/users/kblohm/following{/other_user}","gists_url":"https://api.github.com/users/kblohm/gists{/gist_id}","starred_url":"https://api.github.com/users/kblohm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kblohm/subscriptions","organizations_url":"https://api.github.com/users/kblohm/orgs","repos_url":"https://api.github.com/users/kblohm/repos","events_url":"https://api.github.com/users/kblohm/events{/privacy}","received_events_url":"https://api.github.com/users/kblohm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-22T08:52:05Z","updated_at":"2018-05-22T09:55:04Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I am not sure if this is something that FAKE can/should handle, but it is pretty inconvenient.\r\nFor example \r\n```fsharp\r\nlet configPath = \"relative/path/to/config.json\"\r\nlet configuration = \r\n        ConfigurationBuilder()\r\n            .AddJsonFile(configPath)\r\n            .Build()\r\n```\r\ndoes not find the configuration, because it searches inside the fake-cli folder / the chocolatey folder.\r\nGlobbing on the other hand works just fine and searches relative to the build.fsx (probably because of [this](https://github.com/fsharp/FAKE/blob/master/src/app/Fake.IO.FileSystem/GlobbingFileSystem.fs#L122))."},"comment":{"url":"https://api.github.com/repos/fsharp/FAKE/issues/comments/390933148","html_url":"https://github.com/fsharp/FAKE/issues/1956#issuecomment-390933148","issue_url":"https://api.github.com/repos/fsharp/FAKE/issues/1956","id":390933148,"user":{"login":"kblohm","id":38011792,"avatar_url":"https://avatars2.githubusercontent.com/u/38011792?v=4","gravatar_id":"","url":"https://api.github.com/users/kblohm","html_url":"https://github.com/kblohm","followers_url":"https://api.github.com/users/kblohm/followers","following_url":"https://api.github.com/users/kblohm/following{/other_user}","gists_url":"https://api.github.com/users/kblohm/gists{/gist_id}","starred_url":"https://api.github.com/users/kblohm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kblohm/subscriptions","organizations_url":"https://api.github.com/users/kblohm/orgs","repos_url":"https://api.github.com/users/kblohm/repos","events_url":"https://api.github.com/users/kblohm/events{/privacy}","received_events_url":"https://api.github.com/users/kblohm/received_events","type":"User","site_admin":false},"created_at":"2018-05-22T09:55:04Z","updated_at":"2018-05-22T09:55:04Z","author_association":"CONTRIBUTOR","body":"As far is i know, the (old) dotnet-fake cli tool is always in the root directory together with the build script so that just works.\r\nI had a similair problem with loading configurations in dotnet-xunit. They solved that somehow in one of the latest beta releases.\r\n\r\nYes `Path.GetFullPath` works. "}}
{"actor":{"display_login":"kblohm"}}