<commit_before>﻿<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <!-- 
  This project packages the assemblies and targets files that form the payload that gets placed inside the CSharp plugin on the SonarQube server. 
  Navigate to \DeploymentArtifacts to pick them up. It also calls a ps script that re-creates the plugin based on an existing one. 
  -->
  <!-- These PropertyGroups seem to be needed otherwise VS does not recognize Release as a configuration option for this project
  and it will default to Debug even if the solution is set to build in Release -->
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProjectGuid>{87887805-9389-4158-9C3F-BAD53908CC12}</ProjectGuid>
    <OutputType>Library</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
    <FileAlignment>512</FileAlignment>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <PlatformTarget>AnyCPU</PlatformTarget>
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <PlatformTarget>AnyCPU</PlatformTarget>
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
  </PropertyGroup>
  <PropertyGroup>
    <SourcesRoot>$(MSBuildThisFileFullPath)\..\..\..</SourcesRoot>
    <DestinationDir>$(SourcesRoot)\DeploymentArtifacts\CSharpPluginPayload\$(Configuration)\</DestinationDir>
    <!-- OutputPath is required by the Clean and Rebuild tasks -->
    <OutputPath>$(DestinationDir)</OutputPath>
  </PropertyGroup>
  <PropertyGroup>
    <AssemblyName>CSharpPluginPayload</AssemblyName>
  </PropertyGroup>
  <ItemGroup>
    <FilesToCopy Include="$(SourcesRoot)\SonarQube.TeamBuild.PreProcessor\bin\$(Configuration)\SonarQube.MSBuild.PreProcessor.exe" />
    <FilesToCopy Include="$(SourcesRoot)\SonarQube.TeamBuild.PreProcessor\bin\$(Configuration)\SupportedBootstrapperVersions.xml" />
    <FilesToCopy Include="$(SourcesRoot)\SonarQube.TeamBuild.PreProcessor\bin\$(Configuration)\SupportedBootstrapperVersions.xml" />
    <FilesToCopy Include="$(SourcesRoot)\SonarQube.TeamBuild.PreProcessor\bin\$(Configuration)\SonarQube.MSBuild.PreProcessor.exe.config" />
    <FilesToCopy Include="$(SourcesRoot)\SonarQube.TeamBuild.PreProcessor\bin\$(Configuration)\Newtonsoft.Json.dll" />
    <FilesToCopy Include="$(SourcesRoot)\SonarQube.TeamBuild.PreProcessor\bin\$(Configuration)\SonarQube.Common.dll" />
    <FilesToCopy Include="$(SourcesRoot)\SonarQube.TeamBuild.PostProcessor\bin\$(Configuration)\SonarQube.MSBuild.PostProcessor.exe" />
    <FilesToCopy Include="$(SourcesRoot)\SonarQube.TeamBuild.PostProcessor\bin\$(Configuration)\SonarQube.MSBuild.PostProcessor.exe.config" />
    <FilesToCopy Include="$(SourcesRoot)\SonarRunner.Shim\bin\$(Configuration)\SonarRunner.Shim.exe" />
    <FilesToCopy Include="$(SourcesRoot)\SonarRunner.Shim\bin\$(Configuration)\SonarRunner.Shim.exe.config" />
    <FilesToCopy Include="$(SourcesRoot)\SonarRunner.Shim\sonar-runner.zip" />
    <FilesToCopy Include="$(SourcesRoot)\SonarQube.TeamBuild.Integration\bin\$(Configuration)\SonarQube.TeamBuild.Integration.dll" />
    <FilesToCopy Include="$(SourcesRoot)\SonarQube.MSBuild.Tasks\bin\$(Configuration)\SonarQube.MSBuild.Tasks.dll" />
    <TargetsToCopy Include="$(SourcesRoot)\SonarQube.MSBuild.Tasks\bin\$(Configuration)\Targets\SonarQube.Integration.targets" />
    <!-- Reference to dependencies to ensure the build order is correct -->
    <ProjectReference Include="$(SourcesRoot)\SonarQube.MSBuild.Tasks\SonarQube.MSBuild.Tasks.csproj">
      <Project>{ab14d4f9-f7b9-4cab-a0dd-54068b236a6d}</Project>
      <Name>SonarQube.MSBuild.Tasks</Name>
    </ProjectReference>
    <ProjectReference Include="$(SourcesRoot)\SonarQube.TeamBuild.Integration\SonarQube.TeamBuild.Integration.csproj">
      <Project>{66ce9491-1c14-45d2-beb6-a0695c63ebb2}</Project>
      <Name>SonarQube.TeamBuild.Integration</Name>
    </ProjectReference>
    <ProjectReference Include="$(SourcesRoot)\SonarQube.TeamBuild.PostProcessor\SonarQube.TeamBuild.PostProcessor.csproj">
      <Project>{80f02fad-fe7e-41b6-9151-bb650fdd6103}</Project>
      <Name>SonarQube.TeamBuild.PostProcessor</Name>
    </ProjectReference>
    <ProjectReference Include="$(SourcesRoot)\SonarQube.TeamBuild.PreProcessor\SonarQube.TeamBuild.PreProcessor.csproj">
      <Project>{f43364bb-e460-4ac4-87e9-de460a9f55f5}</Project>
      <Name>SonarQube.TeamBuild.PreProcessor</Name>
    </ProjectReference>
    <ProjectReference Include="$(SourcesRoot)\SonarRunner.Shim\SonarRunner.Shim.csproj">
      <Project>{c28a09bf-6025-4ea1-90d7-4d5ec0af815d}</Project>
      <Name>SonarRunner.Shim</Name>
    </ProjectReference>
  </ItemGroup>
  <ItemGroup Condition="$(Configuration)== 'Debug'">
    <FilesToCopy Include="$(SourcesRoot)\SonarQube.TeamBuild.PreProcessor\bin\$(Configuration)\SonarQube.MSBuild.PreProcessor.pdb" />
    <FilesToCopy Include="$(SourcesRoot)\SonarQube.TeamBuild.PreProcessor\bin\$(Configuration)\SonarQube.Common.pdb" />
    <FilesToCopy Include="$(SourcesRoot)\SonarQube.TeamBuild.PostProcessor\bin\$(Configuration)\SonarQube.MSBuild.PostProcessor.pdb" />
    <FilesToCopy Include="$(SourcesRoot)\SonarRunner.Shim\bin\$(Configuration)\SonarRunner.Shim.pdb" />
    <FilesToCopy Include="$(SourcesRoot)\SonarQube.TeamBuild.Integration\bin\$(Configuration)\SonarQube.TeamBuild.Integration.pdb" />
    <FilesToCopy Include="$(SourcesRoot)\SonarQube.MSBuild.Tasks\bin\$(Configuration)\SonarQube.MSBuild.Tasks.pdb" />
  </ItemGroup>
  <ItemGroup>
    <None Include="RepackageCSharpPlugin.ps1" />
  </ItemGroup>
  <ItemGroup>
    <Content Include="JarPackaging_Readme.txt" />
  </ItemGroup>
  <Target Name="CreatePayload" AfterTargets="Build">
    <CallTarget Targets="CleanExistingPayload" />
    <CallTarget Targets="CopyPayloadFiles" />
  </Target>
  <Target Name="CopyPayloadFiles">
    <Copy SourceFiles="@(FilesToCopy)" DestinationFolder="$(DestinationDir)" />
    <Copy SourceFiles="@(TargetsToCopy)" DestinationFolder="$(DestinationDir)\Targets" />
  </Target>
  <Target Name="CleanExistingPayload" AfterTargets="Clean">
    <RemoveDir Directories="$(DestinationDir)" />
  </Target>
  <Target Name="PackageJar" AfterTargets="CreatePayload">
    <!-- DO NOT introduce newlines in the command bellow as it will block powershell-->
    <Exec Command="powershell.exe -executionpolicy bypass -command &quot;&amp; invoke-command -scriptblock { &amp;'./RepackageCSharpPlugin.ps1' '$(Configuration)' } &quot;" /><commit_msg>[Technical] Minor fixes / typos from SONARMSBRU-87 commit<commit_after>﻿<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <!-- 
  This project packages the assemblies and targets files that form the payload that gets placed inside the CSharp plugin on the SonarQube server. 
  Navigate to \DeploymentArtifacts to pick them up. It also calls a ps script that re-creates the plugin based on an existing one. 
  -->
  <!-- These PropertyGroups seem to be needed otherwise VS does not recognize Release as a configuration option for this project
  and it will default to Debug even if the solution is set to build in Release -->
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProjectGuid>{87887805-9389-4158-9C3F-BAD53908CC12}</ProjectGuid>
    <OutputType>Library</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
    <FileAlignment>512</FileAlignment>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <PlatformTarget>AnyCPU</PlatformTarget>
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <PlatformTarget>AnyCPU</PlatformTarget>
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
  </PropertyGroup>
  <PropertyGroup>
    <SourcesRoot>$(MSBuildThisFileFullPath)\..\..\..</SourcesRoot>
    <DestinationDir>$(SourcesRoot)\DeploymentArtifacts\CSharpPluginPayload\$(Configuration)\</DestinationDir>
    <!-- OutputPath is required by the Clean and Rebuild tasks -->
    <OutputPath>$(DestinationDir)</OutputPath>
  </PropertyGroup>
  <PropertyGroup>
    <AssemblyName>CSharpPluginPayload</AssemblyName>
  </PropertyGroup>
  <ItemGroup>
    <FilesToCopy Include="$(SourcesRoot)\SonarQube.TeamBuild.PreProcessor\bin\$(Configuration)\SonarQube.MSBuild.PreProcessor.exe" />
    <FilesToCopy Include="$(SourcesRoot)\SonarQube.TeamBuild.PreProcessor\bin\$(Configuration)\SupportedBootstrapperVersions.xml" />
    <FilesToCopy Include="$(SourcesRoot)\SonarQube.TeamBuild.PreProcessor\bin\$(Configuration)\SonarQube.MSBuild.PreProcessor.exe.config" />
    <FilesToCopy Include="$(SourcesRoot)\SonarQube.TeamBuild.PreProcessor\bin\$(Configuration)\Newtonsoft.Json.dll" />
    <FilesToCopy Include="$(SourcesRoot)\SonarQube.TeamBuild.PreProcessor\bin\$(Configuration)\SonarQube.Common.dll" />
    <FilesToCopy Include="$(SourcesRoot)\SonarQube.TeamBuild.PostProcessor\bin\$(Configuration)\SonarQube.MSBuild.PostProcessor.exe" />
    <FilesToCopy Include="$(SourcesRoot)\SonarQube.TeamBuild.PostProcessor\bin\$(Configuration)\SonarQube.MSBuild.PostProcessor.exe.config" />
    <FilesToCopy Include="$(SourcesRoot)\SonarRunner.Shim\bin\$(Configuration)\SonarRunner.Shim.exe" />
    <FilesToCopy Include="$(SourcesRoot)\SonarRunner.Shim\bin\$(Configuration)\SonarRunner.Shim.exe.config" />
    <FilesToCopy Include="$(SourcesRoot)\SonarRunner.Shim\sonar-runner.zip" />
    <FilesToCopy Include="$(SourcesRoot)\SonarQube.TeamBuild.Integration\bin\$(Configuration)\SonarQube.TeamBuild.Integration.dll" />
    <FilesToCopy Include="$(SourcesRoot)\SonarQube.MSBuild.Tasks\bin\$(Configuration)\SonarQube.MSBuild.Tasks.dll" />
    <TargetsToCopy Include="$(SourcesRoot)\SonarQube.MSBuild.Tasks\bin\$(Configuration)\Targets\SonarQube.Integration.targets" />
    <!-- Reference to dependencies to ensure the build order is correct -->
    <ProjectReference Include="$(SourcesRoot)\SonarQube.MSBuild.Tasks\SonarQube.MSBuild.Tasks.csproj">
      <Project>{ab14d4f9-f7b9-4cab-a0dd-54068b236a6d}</Project>
      <Name>SonarQube.MSBuild.Tasks</Name>
    </ProjectReference>
    <ProjectReference Include="$(SourcesRoot)\SonarQube.TeamBuild.Integration\SonarQube.TeamBuild.Integration.csproj">
      <Project>{66ce9491-1c14-45d2-beb6-a0695c63ebb2}</Project>
      <Name>SonarQube.TeamBuild.Integration</Name>
    </ProjectReference>
    <ProjectReference Include="$(SourcesRoot)\SonarQube.TeamBuild.PostProcessor\SonarQube.TeamBuild.PostProcessor.csproj">
      <Project>{80f02fad-fe7e-41b6-9151-bb650fdd6103}</Project>
      <Name>SonarQube.TeamBuild.PostProcessor</Name>
    </ProjectReference>
    <ProjectReference Include="$(SourcesRoot)\SonarQube.TeamBuild.PreProcessor\SonarQube.TeamBuild.PreProcessor.csproj">
      <Project>{f43364bb-e460-4ac4-87e9-de460a9f55f5}</Project>
      <Name>SonarQube.TeamBuild.PreProcessor</Name>
    </ProjectReference>
    <ProjectReference Include="$(SourcesRoot)\SonarRunner.Shim\SonarRunner.Shim.csproj">
      <Project>{c28a09bf-6025-4ea1-90d7-4d5ec0af815d}</Project>
      <Name>SonarRunner.Shim</Name>
    </ProjectReference>
  </ItemGroup>
  <ItemGroup Condition="$(Configuration)== 'Debug'">
    <FilesToCopy Include="$(SourcesRoot)\SonarQube.TeamBuild.PreProcessor\bin\$(Configuration)\SonarQube.MSBuild.PreProcessor.pdb" />
    <FilesToCopy Include="$(SourcesRoot)\SonarQube.TeamBuild.PreProcessor\bin\$(Configuration)\SonarQube.Common.pdb" />
    <FilesToCopy Include="$(SourcesRoot)\SonarQube.TeamBuild.PostProcessor\bin\$(Configuration)\SonarQube.MSBuild.PostProcessor.pdb" />
    <FilesToCopy Include="$(SourcesRoot)\SonarRunner.Shim\bin\$(Configuration)\SonarRunner.Shim.pdb" />
    <FilesToCopy Include="$(SourcesRoot)\SonarQube.TeamBuild.Integration\bin\$(Configuration)\SonarQube.TeamBuild.Integration.pdb" />
    <FilesToCopy Include="$(SourcesRoot)\SonarQube.MSBuild.Tasks\bin\$(Configuration)\SonarQube.MSBuild.Tasks.pdb" />
  </ItemGroup>
  <ItemGroup>
    <None Include="RepackageCSharpPlugin.ps1" />
  </ItemGroup>
  <ItemGroup>
    <Content Include="JarPackaging_Readme.txt" />
  </ItemGroup>
  <Target Name="CreatePayload" AfterTargets="Build">
    <CallTarget Targets="CleanExistingPayload" />
    <CallTarget Targets="CopyPayloadFiles" />
  </Target>
  <Target Name="CopyPayloadFiles">
    <Copy SourceFiles="@(FilesToCopy)" DestinationFolder="$(DestinationDir)" />
    <Copy SourceFiles="@(TargetsToCopy)" DestinationFolder="$(DestinationDir)\Targets" />
  </Target>
  <Target Name="CleanExistingPayload" AfterTargets="Clean">
    <RemoveDir Directories="$(DestinationDir)" />
  </Target>
  <Target Name="PackageJar" AfterTargets="CreatePayload">
    <!-- DO NOT introduce newlines in the command below as it will block powershell-->
    <Exec Command="powershell.exe -executionpolicy bypass -command &quot;&amp; invoke-command -scriptblock { &amp;'./RepackageCSharpPlugin.ps1' '$(Configuration)' } &quot;" />
{'fraction_non_alphanumeric': 0.14917798427448178, 'fraction_numerical': 0.019728377412437454, 'mean_word_length': 5.522610722610723, 'pattern_counts': {'":': 0, '<': 270, '<?xml version=': 2, '>': 270, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 7}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6100198', 'n_tokens_mistral': 4711, 'n_tokens_neox': 4237, 'n_words': 562}