{"action":"created","comment":{"url":"https://api.github.com/repos/cake-build/cake/pulls/comments/76971187","id":76971187,"diff_hunk":"@@ -23,12 +23,34 @@ public sealed class CakeRunner : Tool<CakeSettings>\n         private readonly ICakeEnvironment _environment;\n         private readonly IFileSystem _fileSystem;\n         private readonly IGlobber _globber;\n-        private static readonly IEnumerable<FilePath> _executingAssemblyToolPaths = new FilePath[] { System.Reflection.Assembly.GetEntryAssembly().Location };\n+        private static readonly IEnumerable<FilePath> _executingAssemblyToolPaths = GetEntryAssembly();\n+\n+        private static IEnumerable<FilePath> GetEntryAssembly()\n+        {\n+            string location = null;\n+            try\n+            {\n+                location = System.Reflection.Assembly.GetEntryAssembly()?.Location;\n+            }\n+            catch\n+            {\n+            }\n+            if (!string.IsNullOrWhiteSpace(location))\n+            {\n+                yield return location;\n+            }\n+            else\n+            {\n+                var directory = new FilePath(System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(CakeRunner)).Assembly.Location).GetDirectory();\n+                yield return directory.CombineWithFilePath(\"Cake.exe\");\n+                yield return directory.CombineWithFilePath(\"Cake.dll\");\n+            }\n+        }\n \n         /// <summary>\n         /// Initializes a new instance of the <see cref=\"CakeRunner\"/> class.\n         /// </summary>\n-        /// <param name=\"fileSystem\">The file system.</param>\n+        /// <param name=\"fileSystem\">The file system.</param>11","path":"src/Cake.Common/Tools/Cake/CakeRunner.cs","position":33,"original_position":33,"commit_id":"a3d7c984305a97764b9f4834e19b8635eb20ab49","original_commit_id":"a3d7c984305a97764b9f4834e19b8635eb20ab49","user":{"login":"devlead","id":1647294,"avatar_url":"https://avatars.githubusercontent.com/u/1647294?v=3","gravatar_id":"","url":"https://api.github.com/users/devlead","html_url":"https://github.com/devlead","followers_url":"https://api.github.com/users/devlead/followers","following_url":"https://api.github.com/users/devlead/following{/other_user}","gists_url":"https://api.github.com/users/devlead/gists{/gist_id}","starred_url":"https://api.github.com/users/devlead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devlead/subscriptions","organizations_url":"https://api.github.com/users/devlead/orgs","repos_url":"https://api.github.com/users/devlead/repos","events_url":"https://api.github.com/users/devlead/events{/privacy}","received_events_url":"https://api.github.com/users/devlead/received_events","type":"User","site_admin":false},"body":"that's me typing in the wrong window...","created_at":"2016-08-31T11:34:42Z","updated_at":"2016-08-31T11:34:42Z","html_url":"https://github.com/cake-build/cake/pull/1205#discussion_r76971187","pull_request_url":"https://api.github.com/repos/cake-build/cake/pulls/1205","_links":{"self":{"href":"https://api.github.com/repos/cake-build/cake/pulls/comments/76971187"},"html":{"href":"https://github.com/cake-build/cake/pull/1205#discussion_r76971187"},"pull_request":{"href":"https://api.github.com/repos/cake-build/cake/pulls/1205"}}},"pull_request":{"url":"https://api.github.com/repos/cake-build/cake/pulls/1205","id":83434637,"html_url":"https://github.com/cake-build/cake/pull/1205","diff_url":"https://github.com/cake-build/cake/pull/1205.diff","patch_url":"https://github.com/cake-build/cake/pull/1205.patch","issue_url":"https://api.github.com/repos/cake-build/cake/issues/1205","number":1205,"state":"open","locked":false,"title":"WIP upgrade to .NET Test XUnit preview3-build1039","user":{"login":"devlead","id":1647294,"avatar_url":"https://avatars.githubusercontent.com/u/1647294?v=3","gravatar_id":"","url":"https://api.github.com/users/devlead","html_url":"https://github.com/devlead","followers_url":"https://api.github.com/users/devlead/followers","following_url":"https://api.github.com/users/devlead/following{/other_user}","gists_url":"https://api.github.com/users/devlead/gists{/gist_id}","starred_url":"https://api.github.com/users/devlead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devlead/subscriptions","organizations_url":"https://api.github.com/users/devlead/orgs","repos_url":"https://api.github.com/users/devlead/repos","events_url":"https://api.github.com/users/devlead/events{/privacy}","received_events_url":"https://api.github.com/users/devlead/received_events","type":"User","site_admin":false},"body":"Just a WIP to test if they're any AppVeyor perf improvements with latest xunit tunner that uses an new batch API for reporting test results.","created_at":"2016-08-31T11:27:11Z","updated_at":"2016-08-31T11:34:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2a7ae41cc5ec76f111b28f813ace054378ca7f37","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/cake-build/cake/pulls/1205/commits","review_comments_url":"https://api.github.com/repos/cake-build/cake/pulls/1205/comments","review_comment_url":"https://api.github.com/repos/cake-build/cake/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cake-build/cake/issues/1205/comments","statuses_url":"https://api.github.com/repos/cake-build/cake/statuses/a3d7c984305a97764b9f4834e19b8635eb20ab49","head":{"label":"devlead:feature/preview3xunit","ref":"feature/preview3xunit","sha":"a3d7c984305a97764b9f4834e19b8635eb20ab49","user":{"login":"devlead","id":1647294,"avatar_url":"https://avatars.githubusercontent.com/u/1647294?v=3","gravatar_id":"","url":"https://api.github.com/users/devlead","html_url":"https://github.com/devlead","followers_url":"https://api.github.com/users/devlead/followers","following_url":"https://api.github.com/users/devlead/following{/other_user}","gists_url":"https://api.github.com/users/devlead/gists{/gist_id}","starred_url":"https://api.github.com/users/devlead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devlead/subscriptions","organizations_url":"https://api.github.com/users/devlead/orgs","repos_url":"https://api.github.com/users/devlead/repos","events_url":"https://api.github.com/users/devlead/events{/privacy}","received_events_url":"https://api.github.com/users/devlead/received_events","type":"User","site_admin":false},"repo":{"id":21160725,"name":"cake","full_name":"devlead/cake","owner":{"login":"devlead","id":1647294,"avatar_url":"https://avatars.githubusercontent.com/u/1647294?v=3","gravatar_id":"","url":"https://api.github.com/users/devlead","html_url":"https://github.com/devlead","followers_url":"https://api.github.com/users/devlead/followers","following_url":"https://api.github.com/users/devlead/following{/other_user}","gists_url":"https://api.github.com/users/devlead/gists{/gist_id}","starred_url":"https://api.github.com/users/devlead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devlead/subscriptions","organizations_url":"https://api.github.com/users/devlead/orgs","repos_url":"https://api.github.com/users/devlead/repos","events_url":"https://api.github.com/users/devlead/events{/privacy}","received_events_url":"https://api.github.com/users/devlead/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/devlead/cake","description":"Cake (C# Make) is a build automation system.","fork":true,"url":"https://api.github.com/repos/devlead/cake","forks_url":"https://api.github.com/repos/devlead/cake/forks","keys_url":"https://api.github.com/repos/devlead/cake/keys{/key_id}","collaborators_url":"https://api.github.com/repos/devlead/cake/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/devlead/cake/teams","hooks_url":"https://api.github.com/repos/devlead/cake/hooks","issue_events_url":"https://api.github.com/repos/devlead/cake/issues/events{/number}","events_url":"https://api.github.com/repos/devlead/cake/events","assignees_url":"https://api.github.com/repos/devlead/cake/assignees{/user}","branches_url":"https://api.github.com/repos/devlead/cake/branches{/branch}","tags_url":"https://api.github.com/repos/devlead/cake/tags","blobs_url":"https://api.github.com/repos/devlead/cake/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/devlead/cake/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/devlead/cake/git/refs{/sha}","trees_url":"https://api.github.com/repos/devlead/cake/git/trees{/sha}","statuses_url":"https://api.github.com/repos/devlead/cake/statuses/{sha}","languages_url":"https://api.github.com/repos/devlead/cake/languages","stargazers_url":"https://api.github.com/repos/devlead/cake/stargazers","contributors_url":"https://api.github.com/repos/devlead/cake/contributors","subscribers_url":"https://api.github.com/repos/devlead/cake/subscribers","subscription_url":"https://api.github.com/repos/devlead/cake/subscription","commits_url":"https://api.github.com/repos/devlead/cake/commits{/sha}","git_commits_url":"https://api.github.com/repos/devlead/cake/git/commits{/sha}","comments_url":"https://api.github.com/repos/devlead/cake/comments{/number}","issue_comment_url":"https://api.github.com/repos/devlead/cake/issues/comments{/number}","contents_url":"https://api.github.com/repos/devlead/cake/contents/{+path}","compare_url":"https://api.github.com/repos/devlead/cake/compare/{base}...{head}","merges_url":"https://api.github.com/repos/devlead/cake/merges","archive_url":"https://api.github.com/repos/devlead/cake/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/devlead/cake/downloads","issues_url":"https://api.github.com/repos/devlead/cake/issues{/number}","pulls_url":"https://api.github.com/repos/devlead/cake/pulls{/number}","milestones_url":"https://api.github.com/repos/devlead/cake/milestones{/number}","notifications_url":"https://api.github.com/repos/devlead/cake/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/devlead/cake/labels{/name}","releases_url":"https://api.github.com/repos/devlead/cake/releases{/id}","deployments_url":"https://api.github.com/repos/devlead/cake/deployments","created_at":"2014-06-24T10:25:04Z","updated_at":"2016-02-09T15:12:26Z","pushed_at":"2016-08-31T11:24:03Z","git_url":"git://github.com/devlead/cake.git","ssh_url":"git@github.com:devlead/cake.git","clone_url":"https://github.com/devlead/cake.git","svn_url":"https://github.com/devlead/cake","homepage":"http://cakebuild.net","size":6129,"stargazers_count":1,"watchers_count":1,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"develop"}},"base":{"label":"cake-build:develop","ref":"develop","sha":"738e73cef608de236915f553ef3f99c203b9464d","user":{"login":"cake-build","id":7738262,"avatar_url":"https://avatars.githubusercontent.com/u/7738262?v=3","gravatar_id":"","url":"https://api.github.com/users/cake-build","html_url":"https://github.com/cake-build","followers_url":"https://api.github.com/users/cake-build/followers","following_url":"https://api.github.com/users/cake-build/following{/other_user}","gists_url":"https://api.github.com/users/cake-build/gists{/gist_id}","starred_url":"https://api.github.com/users/cake-build/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cake-build/subscriptions","organizations_url":"https://api.github.com/users/cake-build/orgs","repos_url":"https://api.github.com/users/cake-build/repos","events_url":"https://api.github.com/users/cake-build/events{/privacy}","received_events_url":"https://api.github.com/users/cake-build/received_events","type":"Organization","site_admin":false},"repo":{"id":20094029,"name":"cake","full_name":"cake-build/cake","owner":{"login":"cake-build","id":7738262,"avatar_url":"https://avatars.githubusercontent.com/u/7738262?v=3","gravatar_id":"","url":"https://api.github.com/users/cake-build","html_url":"https://github.com/cake-build","followers_url":"https://api.github.com/users/cake-build/followers","following_url":"https://api.github.com/users/cake-build/following{/other_user}","gists_url":"https://api.github.com/users/cake-build/gists{/gist_id}","starred_url":"https://api.github.com/users/cake-build/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cake-build/subscriptions","organizations_url":"https://api.github.com/users/cake-build/orgs","repos_url":"https://api.github.com/users/cake-build/repos","events_url":"https://api.github.com/users/cake-build/events{/privacy}","received_events_url":"https://api.github.com/users/cake-build/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cake-build/cake","description":"Cake (C# Make) is a cross platform build automation system.","fork":false,"url":"https://api.github.com/repos/cake-build/cake","forks_url":"https://api.github.com/repos/cake-build/cake/forks","keys_url":"https://api.github.com/repos/cake-build/cake/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cake-build/cake/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cake-build/cake/teams","hooks_url":"https://api.github.com/repos/cake-build/cake/hooks","issue_events_url":"https://api.github.com/repos/cake-build/cake/issues/events{/number}","events_url":"https://api.github.com/repos/cake-build/cake/events","assignees_url":"https://api.github.com/repos/cake-build/cake/assignees{/user}","branches_url":"https://api.github.com/repos/cake-build/cake/branches{/branch}","tags_url":"https://api.github.com/repos/cake-build/cake/tags","blobs_url":"https://api.github.com/repos/cake-build/cake/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cake-build/cake/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cake-build/cake/git/refs{/sha}","trees_url":"https://api.github.com/repos/cake-build/cake/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cake-build/cake/statuses/{sha}","languages_url":"https://api.github.com/repos/cake-build/cake/languages","stargazers_url":"https://api.github.com/repos/cake-build/cake/stargazers","contributors_url":"https://api.github.com/repos/cake-build/cake/contributors","subscribers_url":"https://api.github.com/repos/cake-build/cake/subscribers","subscription_url":"https://api.github.com/repos/cake-build/cake/subscription","commits_url":"https://api.github.com/repos/cake-build/cake/commits{/sha}","git_commits_url":"https://api.github.com/repos/cake-build/cake/git/commits{/sha}","comments_url":"https://api.github.com/repos/cake-build/cake/comments{/number}","issue_comment_url":"https://api.github.com/repos/cake-build/cake/issues/comments{/number}","contents_url":"https://api.github.com/repos/cake-build/cake/contents/{+path}","compare_url":"https://api.github.com/repos/cake-build/cake/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cake-build/cake/merges","archive_url":"https://api.github.com/repos/cake-build/cake/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cake-build/cake/downloads","issues_url":"https://api.github.com/repos/cake-build/cake/issues{/number}","pulls_url":"https://api.github.com/repos/cake-build/cake/pulls{/number}","milestones_url":"https://api.github.com/repos/cake-build/cake/milestones{/number}","notifications_url":"https://api.github.com/repos/cake-build/cake/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cake-build/cake/labels{/name}","releases_url":"https://api.github.com/repos/cake-build/cake/releases{/id}","deployments_url":"https://api.github.com/repos/cake-build/cake/deployments","created_at":"2014-05-23T09:26:54Z","updated_at":"2016-08-31T09:54:11Z","pushed_at":"2016-08-31T11:27:11Z","git_url":"git://github.com/cake-build/cake.git","ssh_url":"git@github.com:cake-build/cake.git","clone_url":"https://github.com/cake-build/cake.git","svn_url":"https://github.com/cake-build/cake","homepage":"http://cakebuild.net/","size":9086,"stargazers_count":764,"watchers_count":764,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":192,"mirror_url":null,"open_issues_count":139,"forks":192,"open_issues":139,"watchers":764,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/cake-build/cake/pulls/1205"},"html":{"href":"https://github.com/cake-build/cake/pull/1205"},"issue":{"href":"https://api.github.com/repos/cake-build/cake/issues/1205"},"comments":{"href":"https://api.github.com/repos/cake-build/cake/issues/1205/comments"},"review_comments":{"href":"https://api.github.com/repos/cake-build/cake/pulls/1205/comments"},"review_comment":{"href":"https://api.github.com/repos/cake-build/cake/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cake-build/cake/pulls/1205/commits"},"statuses":{"href":"https://api.github.com/repos/cake-build/cake/statuses/a3d7c984305a97764b9f4834e19b8635eb20ab49"}}}}
{"actor":{"display_login":"devlead"}}