{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/579","labels_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/579/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/579/comments","events_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/579/events","html_url":"https://github.com/Microsoft/visualfsharp/issues/579","id":100057942,"number":579,"title":"Too long path in #r directive","user":{"login":"xperiandri","id":2365592,"avatar_url":"https://avatars.githubusercontent.com/u/2365592?v=3","gravatar_id":"","url":"https://api.github.com/users/xperiandri","html_url":"https://github.com/xperiandri","followers_url":"https://api.github.com/users/xperiandri/followers","following_url":"https://api.github.com/users/xperiandri/following{/other_user}","gists_url":"https://api.github.com/users/xperiandri/gists{/gist_id}","starred_url":"https://api.github.com/users/xperiandri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xperiandri/subscriptions","organizations_url":"https://api.github.com/users/xperiandri/orgs","repos_url":"https://api.github.com/users/xperiandri/repos","events_url":"https://api.github.com/users/xperiandri/events{/privacy}","received_events_url":"https://api.github.com/users/xperiandri/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-10T13:00:46Z","updated_at":"2015-08-10T18:17:33Z","closed_at":null,"body":"If a path in #r directive is to long F# interactive says `\" '<path>\\<assembly name>.dll' is not a valid assembly name\"`. It doesn't matter if it is referenced by absolute or relative paths.\r\n\r\nFor example this long `C:\\Users\\Андрій\\Dev\\XperiAndri\\D2L\\Sources\\packages\\FSharp.Text.RegexProvider.0.0.7\\lib\\net40\\FSharp.Text.RegexProvider.dll`\r\n\r\nBut if I move that assembly to a shorter path example `C:\\Temp\\FSharp.Text.RegexProvider.dll` it works fine.\r\nThe path `C:\\Users\\Андрій\\FSharp.Text.RegexProvider.dll` also works so the problem is not in my user name `Андрій`. However Ukrainian (and also Byelorussian) letter i with code U+0456 in my user name can have impact on this issue."},"comment":{"url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/comments/129555174","html_url":"https://github.com/Microsoft/visualfsharp/issues/579#issuecomment-129555174","issue_url":"https://api.github.com/repos/Microsoft/visualfsharp/issues/579","id":129555174,"user":{"login":"latkin","id":5943573,"avatar_url":"https://avatars.githubusercontent.com/u/5943573?v=3","gravatar_id":"","url":"https://api.github.com/users/latkin","html_url":"https://github.com/latkin","followers_url":"https://api.github.com/users/latkin/followers","following_url":"https://api.github.com/users/latkin/following{/other_user}","gists_url":"https://api.github.com/users/latkin/gists{/gist_id}","starred_url":"https://api.github.com/users/latkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/latkin/subscriptions","organizations_url":"https://api.github.com/users/latkin/orgs","repos_url":"https://api.github.com/users/latkin/repos","events_url":"https://api.github.com/users/latkin/events{/privacy}","received_events_url":"https://api.github.com/users/latkin/received_events","type":"User","site_admin":false},"created_at":"2015-08-10T18:17:33Z","updated_at":"2015-08-10T18:17:33Z","body":"At first glance I am guessing this is unrelated to length, and instead a matter of escape sequences.\r\n\r\n`\"C:\\Temp\\FSharp.Text.RegexProvider.dll\"` contains no escape sequences, so parsed string is the same as in your code. (`\\T` and `\\F` are not escapes)\r\n\r\n`\"C:\\Users\\Андрій\\Dev\\XperiAndri\\D2L\\Sources\\packages\\FSharp.Text.RegexProvider.0.0.7\\lib\\net40\\FSharp.Text.RegexProvider.dll\"` does contain escape sequences (namely `\\n`), so parsed string contains a newline.\r\n\r\nDoes it work if you use a verbatim string `@\"c:\\users\\...\\blah.dll\"`?"}}