{"action":"created","comment":{"url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/pulls/comments/34658436","id":34658436,"diff_hunk":"@@ -327,16 +327,176 @@ public void E2E_ExcludedProjects()\n             CheckProjectOutputFolder(descriptor, projectDir);\n         }\n \n+        [TestMethod]\n+        [TestCategory(\"E2E\"), TestCategory(\"Targets\")]\n+        public void E2E_BareProject()\n+        {\n+            // Checks the integration targets handle non-VB/C# project types\n+            // that don't import the standard targets or set the expected properties\n+\n+            // Arrange\n+            string rootInputFolder = TestUtils.CreateTestSpecificFolder(this.TestContext, \"Inputs\");\n+            string rootOutputFolder = TestUtils.CreateTestSpecificFolder(this.TestContext, \"Outputs\");\n+\n+            BuildLogger logger = new BuildLogger();\n+\n+            string sqTargetFile = TestUtils.EnsureAnalysisTargetsExists(this.TestContext);\n+            string projectFilePath = Path.Combine(rootInputFolder, \"project.txt\");\n+            Guid projectGuid = Guid.NewGuid();\n+\n+            string codeFile = CreateEmptyFile(rootInputFolder, \"cpp\");\n+            string contentFile = CreateEmptyFile(rootInputFolder, \".js\");\n+            string unanalysedFile = CreateEmptyFile(rootInputFolder, \".shouldnotbeanalysed\");\n+            string excludedFile = CreateEmptyFile(rootInputFolder, \"excluded.cpp\");\n+\n+            string projectXml = @\"<?xml version='1.0' encoding='utf-8'?>\n+<Project ToolsVersion='12.0' xmlns='http://schemas.microsoft.com/developer/msbuild/2003'>\n+\n+  <PropertyGroup>\n+    <ProjectGuid>{0}</ProjectGuid>\n+\n+    <SonarQubeTempPath>{1}</SonarQubeTempPath>\n+    <SonarQubeOutputPath>{1}</SonarQubeOutputPath>\n+    <SonarQubeBuildTasksAssemblyFile>{2}</SonarQubeBuildTasksAssemblyFile>\n+  </PropertyGroup>\n+\n+  <ItemGroup>\n+    <ClCompile Include='{4}' />\n+    <Content Include='{5}' />\n+    <ShouldBeIgnored Include='{6}' />\n+    <ClCompile Include='{7}'>\n+      <SonarQubeExclude>true</SonarQubeExclude>\n+    </ClCompile>\n+  </ItemGroup>\n+\n+  <Import Project='{3}' />\n+\n+  <Target Name='Build'>\n+    <Message Importance='high' Text='In dummy build target' />\n+  </Target>\n+\n+</Project>\n+\";\n+            ProjectRootElement projectRoot = projectRoot = BuildUtilities.CreateProjectFromTemplate(projectFilePath, this.TestContext, projectXml,","path":"Tests/SonarQube.MSBuild.Tasks.IntegrationTests/E2ETests/E2EAnalysisTests.cs","position":54,"original_position":54,"commit_id":"9e2d32e30c742817a8876afdaf44190853686a28","original_commit_id":"9e2d32e30c742817a8876afdaf44190853686a28","user":{"login":"duncanpMS","id":10757559,"avatar_url":"https://avatars.githubusercontent.com/u/10757559?v=3","gravatar_id":"","url":"https://api.github.com/users/duncanpMS","html_url":"https://github.com/duncanpMS","followers_url":"https://api.github.com/users/duncanpMS/followers","following_url":"https://api.github.com/users/duncanpMS/following{/other_user}","gists_url":"https://api.github.com/users/duncanpMS/gists{/gist_id}","starred_url":"https://api.github.com/users/duncanpMS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duncanpMS/subscriptions","organizations_url":"https://api.github.com/users/duncanpMS/orgs","repos_url":"https://api.github.com/users/duncanpMS/repos","events_url":"https://api.github.com/users/duncanpMS/events{/privacy}","received_events_url":"https://api.github.com/users/duncanpMS/received_events","type":"User","site_admin":false},"body":"Oops. The same thing happens in three other places...","created_at":"2015-07-15T08:54:58Z","updated_at":"2015-07-15T08:54:58Z","html_url":"https://github.com/SonarSource/sonar-msbuild-runner/pull/64#discussion_r34658436","pull_request_url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/pulls/64","_links":{"self":{"href":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/pulls/comments/34658436"},"html":{"href":"https://github.com/SonarSource/sonar-msbuild-runner/pull/64#discussion_r34658436"},"pull_request":{"href":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/pulls/64"}}},"pull_request":{"url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/pulls/64","id":39999633,"html_url":"https://github.com/SonarSource/sonar-msbuild-runner/pull/64","diff_url":"https://github.com/SonarSource/sonar-msbuild-runner/pull/64.diff","patch_url":"https://github.com/SonarSource/sonar-msbuild-runner/pull/64.patch","issue_url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/issues/64","number":64,"state":"open","locked":false,"title":"SONARMSBRU-96: simplify targets file","user":{"login":"duncanpMS","id":10757559,"avatar_url":"https://avatars.githubusercontent.com/u/10757559?v=3","gravatar_id":"","url":"https://api.github.com/users/duncanpMS","html_url":"https://github.com/duncanpMS","followers_url":"https://api.github.com/users/duncanpMS/followers","following_url":"https://api.github.com/users/duncanpMS/following{/other_user}","gists_url":"https://api.github.com/users/duncanpMS/gists{/gist_id}","starred_url":"https://api.github.com/users/duncanpMS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duncanpMS/subscriptions","organizations_url":"https://api.github.com/users/duncanpMS/orgs","repos_url":"https://api.github.com/users/duncanpMS/repos","events_url":"https://api.github.com/users/duncanpMS/events{/privacy}","received_events_url":"https://api.github.com/users/duncanpMS/received_events","type":"User","site_admin":false},"body":"Simplified the main targets file and removed dependencies on the managed-only \"CoreCompile\" target.\r\nFixed up existing unit test.\r\nAdd new end-to-end tests for unrecognised project types (i.e. ones that do not import the standard managed targets or set the normal properties).","created_at":"2015-07-15T08:40:41Z","updated_at":"2015-07-15T08:54:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"afb62f6301cacfdd2c1a766d3ca2d67f0fb8e7fd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/pulls/64/commits","review_comments_url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/pulls/64/comments","review_comment_url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/issues/64/comments","statuses_url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/statuses/9e2d32e30c742817a8876afdaf44190853686a28","head":{"label":"duncanpMS:t96","ref":"t96","sha":"9e2d32e30c742817a8876afdaf44190853686a28","user":{"login":"duncanpMS","id":10757559,"avatar_url":"https://avatars.githubusercontent.com/u/10757559?v=3","gravatar_id":"","url":"https://api.github.com/users/duncanpMS","html_url":"https://github.com/duncanpMS","followers_url":"https://api.github.com/users/duncanpMS/followers","following_url":"https://api.github.com/users/duncanpMS/following{/other_user}","gists_url":"https://api.github.com/users/duncanpMS/gists{/gist_id}","starred_url":"https://api.github.com/users/duncanpMS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duncanpMS/subscriptions","organizations_url":"https://api.github.com/users/duncanpMS/orgs","repos_url":"https://api.github.com/users/duncanpMS/repos","events_url":"https://api.github.com/users/duncanpMS/events{/privacy}","received_events_url":"https://api.github.com/users/duncanpMS/received_events","type":"User","site_admin":false},"repo":{"id":36438614,"name":"sonar-msbuild-runner","full_name":"duncanpMS/sonar-msbuild-runner","owner":{"login":"duncanpMS","id":10757559,"avatar_url":"https://avatars.githubusercontent.com/u/10757559?v=3","gravatar_id":"","url":"https://api.github.com/users/duncanpMS","html_url":"https://github.com/duncanpMS","followers_url":"https://api.github.com/users/duncanpMS/followers","following_url":"https://api.github.com/users/duncanpMS/following{/other_user}","gists_url":"https://api.github.com/users/duncanpMS/gists{/gist_id}","starred_url":"https://api.github.com/users/duncanpMS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duncanpMS/subscriptions","organizations_url":"https://api.github.com/users/duncanpMS/orgs","repos_url":"https://api.github.com/users/duncanpMS/repos","events_url":"https://api.github.com/users/duncanpMS/events{/privacy}","received_events_url":"https://api.github.com/users/duncanpMS/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/duncanpMS/sonar-msbuild-runner","description":"","fork":true,"url":"https://api.github.com/repos/duncanpMS/sonar-msbuild-runner","forks_url":"https://api.github.com/repos/duncanpMS/sonar-msbuild-runner/forks","keys_url":"https://api.github.com/repos/duncanpMS/sonar-msbuild-runner/keys{/key_id}","collaborators_url":"https://api.github.com/repos/duncanpMS/sonar-msbuild-runner/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/duncanpMS/sonar-msbuild-runner/teams","hooks_url":"https://api.github.com/repos/duncanpMS/sonar-msbuild-runner/hooks","issue_events_url":"https://api.github.com/repos/duncanpMS/sonar-msbuild-runner/issues/events{/number}","events_url":"https://api.github.com/repos/duncanpMS/sonar-msbuild-runner/events","assignees_url":"https://api.github.com/repos/duncanpMS/sonar-msbuild-runner/assignees{/user}","branches_url":"https://api.github.com/repos/duncanpMS/sonar-msbuild-runner/branches{/branch}","tags_url":"https://api.github.com/repos/duncanpMS/sonar-msbuild-runner/tags","blobs_url":"https://api.github.com/repos/duncanpMS/sonar-msbuild-runner/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/duncanpMS/sonar-msbuild-runner/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/duncanpMS/sonar-msbuild-runner/git/refs{/sha}","trees_url":"https://api.github.com/repos/duncanpMS/sonar-msbuild-runner/git/trees{/sha}","statuses_url":"https://api.github.com/repos/duncanpMS/sonar-msbuild-runner/statuses/{sha}","languages_url":"https://api.github.com/repos/duncanpMS/sonar-msbuild-runner/languages","stargazers_url":"https://api.github.com/repos/duncanpMS/sonar-msbuild-runner/stargazers","contributors_url":"https://api.github.com/repos/duncanpMS/sonar-msbuild-runner/contributors","subscribers_url":"https://api.github.com/repos/duncanpMS/sonar-msbuild-runner/subscribers","subscription_url":"https://api.github.com/repos/duncanpMS/sonar-msbuild-runner/subscription","commits_url":"https://api.github.com/repos/duncanpMS/sonar-msbuild-runner/commits{/sha}","git_commits_url":"https://api.github.com/repos/duncanpMS/sonar-msbuild-runner/git/commits{/sha}","comments_url":"https://api.github.com/repos/duncanpMS/sonar-msbuild-runner/comments{/number}","issue_comment_url":"https://api.github.com/repos/duncanpMS/sonar-msbuild-runner/issues/comments{/number}","contents_url":"https://api.github.com/repos/duncanpMS/sonar-msbuild-runner/contents/{+path}","compare_url":"https://api.github.com/repos/duncanpMS/sonar-msbuild-runner/compare/{base}...{head}","merges_url":"https://api.github.com/repos/duncanpMS/sonar-msbuild-runner/merges","archive_url":"https://api.github.com/repos/duncanpMS/sonar-msbuild-runner/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/duncanpMS/sonar-msbuild-runner/downloads","issues_url":"https://api.github.com/repos/duncanpMS/sonar-msbuild-runner/issues{/number}","pulls_url":"https://api.github.com/repos/duncanpMS/sonar-msbuild-runner/pulls{/number}","milestones_url":"https://api.github.com/repos/duncanpMS/sonar-msbuild-runner/milestones{/number}","notifications_url":"https://api.github.com/repos/duncanpMS/sonar-msbuild-runner/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/duncanpMS/sonar-msbuild-runner/labels{/name}","releases_url":"https://api.github.com/repos/duncanpMS/sonar-msbuild-runner/releases{/id}","created_at":"2015-05-28T13:02:03Z","updated_at":"2015-05-28T13:02:04Z","pushed_at":"2015-07-15T08:38:41Z","git_url":"git://github.com/duncanpMS/sonar-msbuild-runner.git","ssh_url":"git@github.com:duncanpMS/sonar-msbuild-runner.git","clone_url":"https://github.com/duncanpMS/sonar-msbuild-runner.git","svn_url":"https://github.com/duncanpMS/sonar-msbuild-runner","homepage":null,"size":2737,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"SonarSource:master","ref":"master","sha":"a8fffb8405d850c2f958717551c85ca13979eab8","user":{"login":"SonarSource","id":545988,"avatar_url":"https://avatars.githubusercontent.com/u/545988?v=3","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":34444711,"name":"sonar-msbuild-runner","full_name":"SonarSource/sonar-msbuild-runner","owner":{"login":"SonarSource","id":545988,"avatar_url":"https://avatars.githubusercontent.com/u/545988?v=3","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-msbuild-runner","description":"","fork":false,"url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner","forks_url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/forks","keys_url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/teams","hooks_url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/hooks","issue_events_url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/issues/events{/number}","events_url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/events","assignees_url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/assignees{/user}","branches_url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/branches{/branch}","tags_url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/tags","blobs_url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/git/refs{/sha}","trees_url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/statuses/{sha}","languages_url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/languages","stargazers_url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/stargazers","contributors_url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/contributors","subscribers_url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/subscribers","subscription_url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/subscription","commits_url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/commits{/sha}","git_commits_url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/git/commits{/sha}","comments_url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/comments{/number}","issue_comment_url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/issues/comments{/number}","contents_url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/contents/{+path}","compare_url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/merges","archive_url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/downloads","issues_url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/issues{/number}","pulls_url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/pulls{/number}","milestones_url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/milestones{/number}","notifications_url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/labels{/name}","releases_url":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/releases{/id}","created_at":"2015-04-23T08:45:40Z","updated_at":"2015-07-10T12:03:07Z","pushed_at":"2015-07-15T08:40:42Z","git_url":"git://github.com/SonarSource/sonar-msbuild-runner.git","ssh_url":"git@github.com:SonarSource/sonar-msbuild-runner.git","clone_url":"https://github.com/SonarSource/sonar-msbuild-runner.git","svn_url":"https://github.com/SonarSource/sonar-msbuild-runner","homepage":null,"size":3070,"stargazers_count":6,"watchers_count":6,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":3,"forks":16,"open_issues":3,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/pulls/64"},"html":{"href":"https://github.com/SonarSource/sonar-msbuild-runner/pull/64"},"issue":{"href":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/issues/64"},"comments":{"href":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/issues/64/comments"},"review_comments":{"href":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/pulls/64/comments"},"review_comment":{"href":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/pulls/64/commits"},"statuses":{"href":"https://api.github.com/repos/SonarSource/sonar-msbuild-runner/statuses/9e2d32e30c742817a8876afdaf44190853686a28"}}}}