{"action":"created","comment":{"url":"https://api.github.com/repos/SonarSource/sonar-csharp/pulls/comments/211604150","pull_request_review_id":148057785,"id":211604150,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMTYwNDE1MA==","diff_hunk":"@@ -84,22 +64,25 @@ private static IPackageRepository CreatePackageRepository()\n \n             return aggregateRepository;\n         }\n-\n-        private static MetadataReference[] CreateReferences(string packageId, string packageVersion)\n+        \n+        public static MetadataReference[] Create(string packageId, string packageVersion)\n         {\n-            var matchingDlls = Directory.GetFiles(GetNuGetPackageDirectory(), \"*.dll\", SearchOption.AllDirectories)\n+            EnsurePackageIsInstalled(packageId, packageVersion);","path":"sonaranalyzer-dotnet/tests/SonarAnalyzer.UnitTest/NuGetMetadataReference.cs","position":55,"original_position":55,"commit_id":"11061f7071edfb8457baf8212a6a6b20604588f6","original_commit_id":"11061f7071edfb8457baf8212a6a6b20604588f6","user":{"login":"duncanp-sonar","id":10757559,"node_id":"MDQ6VXNlcjEwNzU3NTU5","avatar_url":"https://avatars1.githubusercontent.com/u/10757559?v=4","gravatar_id":"","url":"https://api.github.com/users/duncanp-sonar","html_url":"https://github.com/duncanp-sonar","followers_url":"https://api.github.com/users/duncanp-sonar/followers","following_url":"https://api.github.com/users/duncanp-sonar/following{/other_user}","gists_url":"https://api.github.com/users/duncanp-sonar/gists{/gist_id}","starred_url":"https://api.github.com/users/duncanp-sonar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duncanp-sonar/subscriptions","organizations_url":"https://api.github.com/users/duncanp-sonar/orgs","repos_url":"https://api.github.com/users/duncanp-sonar/repos","events_url":"https://api.github.com/users/duncanp-sonar/events{/privacy}","received_events_url":"https://api.github.com/users/duncanp-sonar/received_events","type":"User","site_admin":false},"body":"This is the main change - check the packages are available when required. This fixes the issue that caused the cix failure.","created_at":"2018-08-21T13:27:41Z","updated_at":"2018-08-21T13:27:41Z","html_url":"https://github.com/SonarSource/sonar-csharp/pull/1748#discussion_r211604150","pull_request_url":"https://api.github.com/repos/SonarSource/sonar-csharp/pulls/1748","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/SonarSource/sonar-csharp/pulls/comments/211604150"},"html":{"href":"https://github.com/SonarSource/sonar-csharp/pull/1748#discussion_r211604150"},"pull_request":{"href":"https://api.github.com/repos/SonarSource/sonar-csharp/pulls/1748"}}},"pull_request":{"url":"https://api.github.com/repos/SonarSource/sonar-csharp/pulls/1748","id":209644881,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA5NjQ0ODgx","html_url":"https://github.com/SonarSource/sonar-csharp/pull/1748","diff_url":"https://github.com/SonarSource/sonar-csharp/pull/1748.diff","patch_url":"https://github.com/SonarSource/sonar-csharp/pull/1748.patch","issue_url":"https://api.github.com/repos/SonarSource/sonar-csharp/issues/1748","number":1748,"state":"open","locked":false,"title":"Fixed #1747: missing test NuGet packages not being installed","user":{"login":"duncanp-sonar","id":10757559,"node_id":"MDQ6VXNlcjEwNzU3NTU5","avatar_url":"https://avatars1.githubusercontent.com/u/10757559?v=4","gravatar_id":"","url":"https://api.github.com/users/duncanp-sonar","html_url":"https://github.com/duncanp-sonar","followers_url":"https://api.github.com/users/duncanp-sonar/followers","following_url":"https://api.github.com/users/duncanp-sonar/following{/other_user}","gists_url":"https://api.github.com/users/duncanp-sonar/gists{/gist_id}","starred_url":"https://api.github.com/users/duncanp-sonar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duncanp-sonar/subscriptions","organizations_url":"https://api.github.com/users/duncanp-sonar/orgs","repos_url":"https://api.github.com/users/duncanp-sonar/repos","events_url":"https://api.github.com/users/duncanp-sonar/events{/privacy}","received_events_url":"https://api.github.com/users/duncanp-sonar/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-08-20T21:11:29Z","updated_at":"2018-08-21T13:27:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6784fa34f608222102cd8557f455cb89f9cdc793","assignee":{"login":"duncanp-sonar","id":10757559,"node_id":"MDQ6VXNlcjEwNzU3NTU5","avatar_url":"https://avatars1.githubusercontent.com/u/10757559?v=4","gravatar_id":"","url":"https://api.github.com/users/duncanp-sonar","html_url":"https://github.com/duncanp-sonar","followers_url":"https://api.github.com/users/duncanp-sonar/followers","following_url":"https://api.github.com/users/duncanp-sonar/following{/other_user}","gists_url":"https://api.github.com/users/duncanp-sonar/gists{/gist_id}","starred_url":"https://api.github.com/users/duncanp-sonar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duncanp-sonar/subscriptions","organizations_url":"https://api.github.com/users/duncanp-sonar/orgs","repos_url":"https://api.github.com/users/duncanp-sonar/repos","events_url":"https://api.github.com/users/duncanp-sonar/events{/privacy}","received_events_url":"https://api.github.com/users/duncanp-sonar/received_events","type":"User","site_admin":false},"assignees":[{"login":"duncanp-sonar","id":10757559,"node_id":"MDQ6VXNlcjEwNzU3NTU5","avatar_url":"https://avatars1.githubusercontent.com/u/10757559?v=4","gravatar_id":"","url":"https://api.github.com/users/duncanp-sonar","html_url":"https://github.com/duncanp-sonar","followers_url":"https://api.github.com/users/duncanp-sonar/followers","following_url":"https://api.github.com/users/duncanp-sonar/following{/other_user}","gists_url":"https://api.github.com/users/duncanp-sonar/gists{/gist_id}","starred_url":"https://api.github.com/users/duncanp-sonar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duncanp-sonar/subscriptions","organizations_url":"https://api.github.com/users/duncanp-sonar/orgs","repos_url":"https://api.github.com/users/duncanp-sonar/repos","events_url":"https://api.github.com/users/duncanp-sonar/events{/privacy}","received_events_url":"https://api.github.com/users/duncanp-sonar/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"valhristov","id":23195959,"node_id":"MDQ6VXNlcjIzMTk1OTU5","avatar_url":"https://avatars2.githubusercontent.com/u/23195959?v=4","gravatar_id":"","url":"https://api.github.com/users/valhristov","html_url":"https://github.com/valhristov","followers_url":"https://api.github.com/users/valhristov/followers","following_url":"https://api.github.com/users/valhristov/following{/other_user}","gists_url":"https://api.github.com/users/valhristov/gists{/gist_id}","starred_url":"https://api.github.com/users/valhristov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valhristov/subscriptions","organizations_url":"https://api.github.com/users/valhristov/orgs","repos_url":"https://api.github.com/users/valhristov/repos","events_url":"https://api.github.com/users/valhristov/events{/privacy}","received_events_url":"https://api.github.com/users/valhristov/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":731543503,"node_id":"MDU6TGFiZWw3MzE1NDM1MDM=","url":"https://api.github.com/repos/SonarSource/sonar-csharp/labels/Status:%20Needs%20Review","name":"Status: Needs Review","color":"b60205","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/SonarSource/sonar-csharp/pulls/1748/commits","review_comments_url":"https://api.github.com/repos/SonarSource/sonar-csharp/pulls/1748/comments","review_comment_url":"https://api.github.com/repos/SonarSource/sonar-csharp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SonarSource/sonar-csharp/issues/1748/comments","statuses_url":"https://api.github.com/repos/SonarSource/sonar-csharp/statuses/11061f7071edfb8457baf8212a6a6b20604588f6","head":{"label":"SonarSource:duncanp/1747testInfra","ref":"duncanp/1747testInfra","sha":"11061f7071edfb8457baf8212a6a6b20604588f6","user":{"login":"SonarSource","id":545988,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0NTk4OA==","avatar_url":"https://avatars0.githubusercontent.com/u/545988?v=4","gravatar_id":"","url":"https://api.github.com/users/SonarSource","html_url":"https://github.com/SonarSource","followers_url":"https://api.github.com/users/SonarSource/followers","following_url":"https://api.github.com/users/SonarSource/following{/other_user}","gists_url":"https://api.github.com/users/SonarSource/gists{/gist_id}","starred_url":"https://api.github.com/users/SonarSource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SonarSource/subscriptions","organizations_url":"https://api.github.com/users/SonarSource/orgs","repos_url":"https://api.github.com/users/SonarSource/repos","events_url":"https://api.github.com/users/SonarSource/events{/privacy}","received_events_url":"https://api.github.com/users/SonarSource/received_events","type":"Organization","site_admin":false},"repo":{"id":5582516,"node_id":"MDEwOlJlcG9zaXRvcnk1NTgyNTE2","name":"sonar-csharp","full_name":"SonarSource/sonar-csharp","owner":{"login":"SonarSource","id":545988,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0NTk4OA==","avatar_url":"https://avatars0.githubusercontent.com/u/545988?v=4","gravatar_id":"","url":"https://api.github.com/users/SonarSource","html_url":"https://github.com/SonarSource","followers_url":"https://api.github.com/users/SonarSource/followers","following_url":"https://api.github.com/users/SonarSource/following{/other_user}","gists_url":"https://api.github.com/users/SonarSource/gists{/gist_id}","starred_url":"https://api.github.com/users/SonarSource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SonarSource/subscriptions","organizations_url":"https://api.github.com/users/SonarSource/orgs","repos_url":"https://api.github.com/users/SonarSource/repos","events_url":"https://api.github.com/users/SonarSource/events{/privacy}","received_events_url":"https://api.github.com/users/SonarSource/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SonarSource/sonar-csharp","description":"Code analyzer for C# projects","fork":false,"url":"https://api.github.com/repos/SonarSource/sonar-csharp","forks_url":"https://api.github.com/repos/SonarSource/sonar-csharp/forks","keys_url":"https://api.github.com/repos/SonarSource/sonar-csharp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SonarSource/sonar-csharp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SonarSource/sonar-csharp/teams","hooks_url":"https://api.github.com/repos/SonarSource/sonar-csharp/hooks","issue_events_url":"https://api.github.com/repos/SonarSource/sonar-csharp/issues/events{/number}","events_url":"https://api.github.com/repos/SonarSource/sonar-csharp/events","assignees_url":"https://api.github.com/repos/SonarSource/sonar-csharp/assignees{/user}","branches_url":"https://api.github.com/repos/SonarSource/sonar-csharp/branches{/branch}","tags_url":"https://api.github.com/repos/SonarSource/sonar-csharp/tags","blobs_url":"https://api.github.com/repos/SonarSource/sonar-csharp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SonarSource/sonar-csharp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SonarSource/sonar-csharp/git/refs{/sha}","trees_url":"https://api.github.com/repos/SonarSource/sonar-csharp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SonarSource/sonar-csharp/statuses/{sha}","languages_url":"https://api.github.com/repos/SonarSource/sonar-csharp/languages","stargazers_url":"https://api.github.com/repos/SonarSource/sonar-csharp/stargazers","contributors_url":"https://api.github.com/repos/SonarSource/sonar-csharp/contributors","subscribers_url":"https://api.github.com/repos/SonarSource/sonar-csharp/subscribers","subscription_url":"https://api.github.com/repos/SonarSource/sonar-csharp/subscription","commits_url":"https://api.github.com/repos/SonarSource/sonar-csharp/commits{/sha}","git_commits_url":"https://api.github.com/repos/SonarSource/sonar-csharp/git/commits{/sha}","comments_url":"https://api.github.com/repos/SonarSource/sonar-csharp/comments{/number}","issue_comment_url":"https://api.github.com/repos/SonarSource/sonar-csharp/issues/comments{/number}","contents_url":"https://api.github.com/repos/SonarSource/sonar-csharp/contents/{+path}","compare_url":"https://api.github.com/repos/SonarSource/sonar-csharp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SonarSource/sonar-csharp/merges","archive_url":"https://api.github.com/repos/SonarSource/sonar-csharp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SonarSource/sonar-csharp/downloads","issues_url":"https://api.github.com/repos/SonarSource/sonar-csharp/issues{/number}","pulls_url":"https://api.github.com/repos/SonarSource/sonar-csharp/pulls{/number}","milestones_url":"https://api.github.com/repos/SonarSource/sonar-csharp/milestones{/number}","notifications_url":"https://api.github.com/repos/SonarSource/sonar-csharp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SonarSource/sonar-csharp/labels{/name}","releases_url":"https://api.github.com/repos/SonarSource/sonar-csharp/releases{/id}","deployments_url":"https://api.github.com/repos/SonarSource/sonar-csharp/deployments","created_at":"2012-08-28T07:37:28Z","updated_at":"2018-08-21T08:23:03Z","pushed_at":"2018-08-21T13:24:33Z","git_url":"git://github.com/SonarSource/sonar-csharp.git","ssh_url":"git@github.com:SonarSource/sonar-csharp.git","clone_url":"https://github.com/SonarSource/sonar-csharp.git","svn_url":"https://github.com/SonarSource/sonar-csharp","homepage":"https://redirect.sonarsource.com/plugins/csharp.html","size":60603,"stargazers_count":199,"watchers_count":199,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":104,"mirror_url":null,"archived":false,"open_issues_count":82,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":104,"open_issues":82,"watchers":199,"default_branch":"master"}},"base":{"label":"SonarSource:master","ref":"master","sha":"2054ef898cc7e7a43895e188b14955d19fd82bc2","user":{"login":"SonarSource","id":545988,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0NTk4OA==","avatar_url":"https://avatars0.githubusercontent.com/u/545988?v=4","gravatar_id":"","url":"https://api.github.com/users/SonarSource","html_url":"https://github.com/SonarSource","followers_url":"https://api.github.com/users/SonarSource/followers","following_url":"https://api.github.com/users/SonarSource/following{/other_user}","gists_url":"https://api.github.com/users/SonarSource/gists{/gist_id}","starred_url":"https://api.github.com/users/SonarSource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SonarSource/subscriptions","organizations_url":"https://api.github.com/users/SonarSource/orgs","repos_url":"https://api.github.com/users/SonarSource/repos","events_url":"https://api.github.com/users/SonarSource/events{/privacy}","received_events_url":"https://api.github.com/users/SonarSource/received_events","type":"Organization","site_admin":false},"repo":{"id":5582516,"node_id":"MDEwOlJlcG9zaXRvcnk1NTgyNTE2","name":"sonar-csharp","full_name":"SonarSource/sonar-csharp","owner":{"login":"SonarSource","id":545988,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0NTk4OA==","avatar_url":"https://avatars0.githubusercontent.com/u/545988?v=4","gravatar_id":"","url":"https://api.github.com/users/SonarSource","html_url":"https://github.com/SonarSource","followers_url":"https://api.github.com/users/SonarSource/followers","following_url":"https://api.github.com/users/SonarSource/following{/other_user}","gists_url":"https://api.github.com/users/SonarSource/gists{/gist_id}","starred_url":"https://api.github.com/users/SonarSource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SonarSource/subscriptions","organizations_url":"https://api.github.com/users/SonarSource/orgs","repos_url":"https://api.github.com/users/SonarSource/repos","events_url":"https://api.github.com/users/SonarSource/events{/privacy}","received_events_url":"https://api.github.com/users/SonarSource/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SonarSource/sonar-csharp","description":"Code analyzer for C# projects","fork":false,"url":"https://api.github.com/repos/SonarSource/sonar-csharp","forks_url":"https://api.github.com/repos/SonarSource/sonar-csharp/forks","keys_url":"https://api.github.com/repos/SonarSource/sonar-csharp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SonarSource/sonar-csharp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SonarSource/sonar-csharp/teams","hooks_url":"https://api.github.com/repos/SonarSource/sonar-csharp/hooks","issue_events_url":"https://api.github.com/repos/SonarSource/sonar-csharp/issues/events{/number}","events_url":"https://api.github.com/repos/SonarSource/sonar-csharp/events","assignees_url":"https://api.github.com/repos/SonarSource/sonar-csharp/assignees{/user}","branches_url":"https://api.github.com/repos/SonarSource/sonar-csharp/branches{/branch}","tags_url":"https://api.github.com/repos/SonarSource/sonar-csharp/tags","blobs_url":"https://api.github.com/repos/SonarSource/sonar-csharp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SonarSource/sonar-csharp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SonarSource/sonar-csharp/git/refs{/sha}","trees_url":"https://api.github.com/repos/SonarSource/sonar-csharp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SonarSource/sonar-csharp/statuses/{sha}","languages_url":"https://api.github.com/repos/SonarSource/sonar-csharp/languages","stargazers_url":"https://api.github.com/repos/SonarSource/sonar-csharp/stargazers","contributors_url":"https://api.github.com/repos/SonarSource/sonar-csharp/contributors","subscribers_url":"https://api.github.com/repos/SonarSource/sonar-csharp/subscribers","subscription_url":"https://api.github.com/repos/SonarSource/sonar-csharp/subscription","commits_url":"https://api.github.com/repos/SonarSource/sonar-csharp/commits{/sha}","git_commits_url":"https://api.github.com/repos/SonarSource/sonar-csharp/git/commits{/sha}","comments_url":"https://api.github.com/repos/SonarSource/sonar-csharp/comments{/number}","issue_comment_url":"https://api.github.com/repos/SonarSource/sonar-csharp/issues/comments{/number}","contents_url":"https://api.github.com/repos/SonarSource/sonar-csharp/contents/{+path}","compare_url":"https://api.github.com/repos/SonarSource/sonar-csharp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SonarSource/sonar-csharp/merges","archive_url":"https://api.github.com/repos/SonarSource/sonar-csharp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SonarSource/sonar-csharp/downloads","issues_url":"https://api.github.com/repos/SonarSource/sonar-csharp/issues{/number}","pulls_url":"https://api.github.com/repos/SonarSource/sonar-csharp/pulls{/number}","milestones_url":"https://api.github.com/repos/SonarSource/sonar-csharp/milestones{/number}","notifications_url":"https://api.github.com/repos/SonarSource/sonar-csharp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SonarSource/sonar-csharp/labels{/name}","releases_url":"https://api.github.com/repos/SonarSource/sonar-csharp/releases{/id}","deployments_url":"https://api.github.com/repos/SonarSource/sonar-csharp/deployments","created_at":"2012-08-28T07:37:28Z","updated_at":"2018-08-21T08:23:03Z","pushed_at":"2018-08-21T13:24:33Z","git_url":"git://github.com/SonarSource/sonar-csharp.git","ssh_url":"git@github.com:SonarSource/sonar-csharp.git","clone_url":"https://github.com/SonarSource/sonar-csharp.git","svn_url":"https://github.com/SonarSource/sonar-csharp","homepage":"https://redirect.sonarsource.com/plugins/csharp.html","size":60603,"stargazers_count":199,"watchers_count":199,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":104,"mirror_url":null,"archived":false,"open_issues_count":82,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":104,"open_issues":82,"watchers":199,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SonarSource/sonar-csharp/pulls/1748"},"html":{"href":"https://github.com/SonarSource/sonar-csharp/pull/1748"},"issue":{"href":"https://api.github.com/repos/SonarSource/sonar-csharp/issues/1748"},"comments":{"href":"https://api.github.com/repos/SonarSource/sonar-csharp/issues/1748/comments"},"review_comments":{"href":"https://api.github.com/repos/SonarSource/sonar-csharp/pulls/1748/comments"},"review_comment":{"href":"https://api.github.com/repos/SonarSource/sonar-csharp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SonarSource/sonar-csharp/pulls/1748/commits"},"statuses":{"href":"https://api.github.com/repos/SonarSource/sonar-csharp/statuses/11061f7071edfb8457baf8212a6a6b20604588f6"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"duncanp-sonar"}}