{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/12298","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/12298/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/12298/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/12298/events","html_url":"https://github.com/Microsoft/TypeScript/issues/12298","id":189670627,"number":12298,"title":"Application configuration file breaks build: The \"FindConfigFiles\" task failed unexpectedly. System.IO.PathTooLongException","user":{"login":"urbanhusky","id":2065748,"avatar_url":"https://avatars.githubusercontent.com/u/2065748?v=3","gravatar_id":"","url":"https://api.github.com/users/urbanhusky","html_url":"https://github.com/urbanhusky","followers_url":"https://api.github.com/users/urbanhusky/followers","following_url":"https://api.github.com/users/urbanhusky/following{/other_user}","gists_url":"https://api.github.com/users/urbanhusky/gists{/gist_id}","starred_url":"https://api.github.com/users/urbanhusky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urbanhusky/subscriptions","organizations_url":"https://api.github.com/users/urbanhusky/orgs","repos_url":"https://api.github.com/users/urbanhusky/repos","events_url":"https://api.github.com/users/urbanhusky/events{/privacy}","received_events_url":"https://api.github.com/users/urbanhusky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-16T11:11:52Z","updated_at":"2016-11-16T11:11:52Z","closed_at":null,"body":"**TypeScript Version:**  2.0.3\r\n\r\nI've got a path to a JSON file, that is ~134 characters long (including the filename). Example:\r\n`C:\\work\\xx-xxxxxxx-xxxxxxxxxx\\src\\xx-xxxxxxx-xxxxxxxxxx\\src\\xxxxxxxxxxxxxxxxx.Web\\config\\environment\\environment-configuration.json`\r\nEver since I've added this file to my asp.net core application, I cannot build, clean or do anything.\r\n\r\n**Expected behavior:**\r\n\r\nBuilding etc. still works\r\n\r\n**Actual behavior:** \r\n\r\nBuild etc. is broken:\r\n```\r\nSeverity\tCode\tDescription\tProject\tFile\tLine\tSuppression State\r\nError\tMSB4018\tThe \"FindConfigFiles\" task failed unexpectedly.\r\nSystem.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.\r\n   at System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)\r\n   at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)\r\n   at System.IO.Path.InternalGetDirectoryName(String path)\r\n   at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost)\r\n   at System.IO.Directory.EnumerateFiles(String path)\r\n   at TypeScript.Tasks.FileHelpers.RecursiveGatherFiles(String directoryPath, String projectPath, Func`2 filter)\r\n   at TypeScript.Tasks.FileHelpers.RecursiveGatherFiles(String directoryPath, String projectPath, Func`2 filter)\r\n   at TypeScript.Tasks.FileHelpers.RecursiveGatherFiles(String directoryPath, String projectPath, Func`2 filter)\r\n   at TypeScript.Tasks.FileHelpers.RecursiveGatherFiles(String directoryPath, String projectPath, Func`2 filter)\r\n   at TypeScript.Tasks.FileHelpers.RecursiveGatherFiles(String directoryPath, String projectPath, Func`2 filter)\r\n   at TypeScript.Tasks.FileHelpers.RecursiveGatherFiles(String directoryPath, String projectPath, Func`2 filter)\r\n   at TypeScript.Tasks.FileHelpers.RecursiveGatherFiles(String directoryPath, String projectPath, Func`2 filter)\r\n   at TypeScript.Tasks.FileHelpers.RecursiveGatherFiles(String directoryPath, String projectPath, Func`2 filter)\r\n   at TypeScript.Tasks.FileHelpers.RecursiveGatherFiles(String directoryPath, String projectPath, Func`2 filter)\r\n   at TypeScript.Tasks.FileHelpers.RecursiveGatherFiles(String directoryPath, String projectPath, Func`2 filter)\r\n   at TypeScript.Tasks.FileHelpers.RecursiveGatherFiles(String directoryPath, String projectPath, Func`2 filter)\r\n   at TypeScript.Tasks.FileHelpers.RecursiveGatherFiles(String directoryPath, String projectPath, Func`2 filter)\r\n   at TypeScript.Tasks.FileHelpers.RecursiveGatherFiles(String directoryPath, String projectPath, Func`2 filter)\r\n   at TypeScript.Tasks.FileHelpers.RecursiveGatherFiles(String directoryPath, String projectPath, Func`2 filter)\r\n   at TypeScript.Tasks.FileHelpers.RecursiveGatherFiles(String directoryPath, String projectPath, Func`2 filter)\r\n   at TypeScript.Tasks.FileHelpers.RecursiveGatherFiles(String directoryPath, String projectPath, Func`2 filter)\r\n   at TypeScript.Tasks.FileHelpers.RecursiveGatherFiles(String directoryPath, String projectPath, Func`2 filter)\r\n   at TypeScript.Tasks.FileHelpers.RecursiveGatherFiles(String directoryPath, String projectPath, Func`2 filter)\r\n   at TypeScript.Tasks.FileHelpers.RecursiveGatherFiles(String directoryPath, String projectPath, Func`2 filter)\r\n   at TypeScript.Tasks.FileHelpers.RecursiveGatherFiles(String directoryPath, String projectPath, Func`2 filter)\r\n   at TypeScript.Tasks.FileHelpers.RecursiveGatherFiles(String directoryPath, String projectPath, Func`2 filter)\r\n   at TypeScript.Tasks.FileHelpers.RecursiveGatherFiles(String directoryPath, String projectPath, Func`2 filter)\r\n   at TypeScript.Tasks.FileHelpers.RecursiveGatherConfigFiles(String directoryPath, String projectPath)\r\n   at TypeScript.Tasks.FindConfigFiles.FindConfigFilesOnDisk()\r\n   at TypeScript.Tasks.FindConfigFiles.Execute()\r\n   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()\r\n   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()\txxxxxxxxxxxxxxxxx.Web\tC:\\Program Files (x86)\\MSBuild\\Microsoft\\VisualStudio\\v14.0\\TypeScript\\Microsoft.TypeScript.targets\t164\t\r\n\r\n```\r\n"}}
{"actor":{"display_login":"urbanhusky"}}