{"action":"created","issue":{"url":"https://api.github.com/repos/fsharp/FAKE/issues/1129","repository_url":"https://api.github.com/repos/fsharp/FAKE","labels_url":"https://api.github.com/repos/fsharp/FAKE/issues/1129/labels{/name}","comments_url":"https://api.github.com/repos/fsharp/FAKE/issues/1129/comments","events_url":"https://api.github.com/repos/fsharp/FAKE/issues/1129/events","html_url":"https://github.com/fsharp/FAKE/issues/1129","id":131407786,"number":1129,"title":"WixHelper directory names containing spaces not building","user":{"login":"devfunkd","id":5835022,"avatar_url":"https://avatars.githubusercontent.com/u/5835022?v=3","gravatar_id":"","url":"https://api.github.com/users/devfunkd","html_url":"https://github.com/devfunkd","followers_url":"https://api.github.com/users/devfunkd/followers","following_url":"https://api.github.com/users/devfunkd/following{/other_user}","gists_url":"https://api.github.com/users/devfunkd/gists{/gist_id}","starred_url":"https://api.github.com/users/devfunkd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devfunkd/subscriptions","organizations_url":"https://api.github.com/users/devfunkd/orgs","repos_url":"https://api.github.com/users/devfunkd/repos","events_url":"https://api.github.com/users/devfunkd/events{/privacy}","received_events_url":"https://api.github.com/users/devfunkd/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2016-02-04T16:51:10Z","updated_at":"2016-03-04T08:00:38Z","closed_at":"2016-03-02T13:31:11Z","body":"When I attempt to run my build script and use a directory name with a space the script fails. If I remove the space in the directory name it works. Looks like WixHelper does not work with directory names containing spaces.\r\n\r\nThis line Fails...\r\n`let applicationDirectoryString = wixDir (fun file -> not (file.Extension = \".config\")) true (DirectoryInfo (buildDir @@ \"/Some Application\"))`\r\n\r\nThis line Passes...\r\n`let applicationDirectoryString = wixDir (fun file -> not (file.Extension = \".config\")) true (DirectoryInfo (buildDir @@ \"/SomeApplication\"))`\r\n\r\nError Message:\r\n\r\n```\r\n 1) System.ArgumentOutOfRangeException: Length cannot be less than zero.\r\nParameter name: length\r\n   at System.String.Substring(Int32 startIndex, Int32 length)\r\n   at Fake.WiXHelper.getComponentIdsFromWiXString@620.Invoke(String f) in C:\\code\\fake\\src\\app\\FakeLib\\WiXHelper.fs:line 620\r\n   at Microsoft.FSharp.Collections.IEnumerator.map@111.DoMoveNext(b& )\r\n   at Microsoft.FSharp.Collections.IEnumerator.MapEnumerator`1.System-Collections-IEnumerator-MoveNext()\r\n   at System.String.Concat(IEnumerable`1 values)\r\n   at Fake.WiXHelper.getComponentIdsFromWiXString(String wiXString) in C:\\code\\fake\\src\\app\\FakeLib\\WiXHelper.fs:line 618\r\n   at FSI_0005.Build.clo@103-5.Invoke(Unit _arg6) in C:\\Workspaces\\MyApp\\main\\build.fsx:line 120\r\n   at Fake.TargetHelper.runSingleTarget(TargetTemplate`1 target) in C:\\code\\fake\\src\\app\\FakeLib\\TargetHelper.fs:line 484\r\n```"},"comment":{"url":"https://api.github.com/repos/fsharp/FAKE/issues/comments/192172497","html_url":"https://github.com/fsharp/FAKE/issues/1129#issuecomment-192172497","issue_url":"https://api.github.com/repos/fsharp/FAKE/issues/1129","id":192172497,"user":{"login":"DigitalFlow","id":4287938,"avatar_url":"https://avatars.githubusercontent.com/u/4287938?v=3","gravatar_id":"","url":"https://api.github.com/users/DigitalFlow","html_url":"https://github.com/DigitalFlow","followers_url":"https://api.github.com/users/DigitalFlow/followers","following_url":"https://api.github.com/users/DigitalFlow/following{/other_user}","gists_url":"https://api.github.com/users/DigitalFlow/gists{/gist_id}","starred_url":"https://api.github.com/users/DigitalFlow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DigitalFlow/subscriptions","organizations_url":"https://api.github.com/users/DigitalFlow/orgs","repos_url":"https://api.github.com/users/DigitalFlow/repos","events_url":"https://api.github.com/users/DigitalFlow/events{/privacy}","received_events_url":"https://api.github.com/users/DigitalFlow/received_events","type":"User","site_admin":false},"created_at":"2016-03-04T08:00:38Z","updated_at":"2016-03-04T08:00:38Z","body":"@forki: I'll make sure, that a letter is prepended to each ID. No revert needed yet."}}