diff --git a/Tests/SonarScanner.MSBuild.Tasks.IntegrationTest/E2ETests/E2EAnalysisTests.cs b/Tests/SonarScanner.MSBuild.Tasks.IntegrationTest/E2ETests/E2EAnalysisTests.cs index aee5bdc917..1cfe80894d 100644 --- a/Tests/SonarScanner.MSBuild.Tasks.IntegrationTest/E2ETests/E2EAnalysisTests.cs +++ b/Tests/SonarScanner.MSBuild.Tasks.IntegrationTest/E2ETests/E2EAnalysisTests.cs @@ -895,7 +895,7 @@ public void E2E_TelemetryFiles_AllWritten() File.Exists(solutionTargetTelemetryFile).Should().BeTrue(); File.ReadAllLines(solutionTargetTelemetryFile).Should().SatisfyRespectively( x => x.Should().StartWith("""{"dotnetenterprise.s4net.build.visual_studio_version":"""), - x => x.Should().StartWith("""{"dotnetenterprise.s4net.build.msbuild_tools_version":""")); + x => x.Should().StartWith("""{"dotnetenterprise.s4net.build.msbuild_version":""")); var projectTelemetryFile = Path.Combine(rootOutputFolder, "0", "Telemetry.json"); File.Exists(projectTelemetryFile).Should().BeTrue(); diff --git a/src/SonarScanner.MSBuild.Tasks/Targets/SonarQube.Integration.targets b/src/SonarScanner.MSBuild.Tasks/Targets/SonarQube.Integration.targets index 691ae5ffa6..928b661cfc 100644 --- a/src/SonarScanner.MSBuild.Tasks/Targets/SonarQube.Integration.targets +++ b/src/SonarScanner.MSBuild.Tasks/Targets/SonarQube.Integration.targets @@ -138,8 +138,8 @@ - - + + @@ -364,8 +364,6 @@ - - @@ -403,6 +401,14 @@ Configuration="$(Configuration)" Platform="$(Platform)" TargetFramework="$(TargetFramework)" /> + + + + + + + +