<commit_before>﻿<!-- Copyright (c)  Microsoft.  All Rights Reserved.  Licensed under the Apache License, Version 2.0.  See License.txt in the project root for license information. -->
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>$(FullFrameworkTFM)</TargetFramework>
    <!-- <ApplyPartialNgenOptimization>true</ApplyPartialNgenOptimization> -->

    <!-- VS Insertion -->
    <TargetVsixContainerName>Microsoft.Build.vsix</TargetVsixContainerName>
    <VisualStudioInsertionComponent>Microsoft.Build</VisualStudioInsertionComponent>

    <ShouldSkipProject>false</ShouldSkipProject>
    <ShouldSkipProject Condition="'$(MonoBuild)' == 'true' or '$(MSBuildRuntimeType)' != 'Full'">true</ShouldSkipProject>
  </PropertyGroup>

  <ItemGroup>
    <ProjectReference Include="..\..\Build\Microsoft.Build.csproj" PrivateAssets="All"/>
  </ItemGroup>

  <ItemGroup>
    <SwrProperty Include="ThirdPartyNotice=$(ThirdPartyNotice)" />
    <SwrProperty Include="SourceDir=$(RepoRoot)\src\" />

    <SwrFile Include="*.swr" />
  </ItemGroup>

  <!-- GetBinPaths depends on GetBuildVersion which does not get imported if ProducesNoOutput.Settings.props is imported-->
  <Import Project="..\GetBinPaths.targets" Condition="!$(ShouldSkipProject)"/>

  <Target Name="SetVsixProperties"
    BeforeTargets="Build"
    DependsOnTargets="SetBinPaths"
    Condition="!$(ShouldSkipProject)">
    <ItemGroup>
      <SwrProperty Include="Version=$(BuildVersion)" />
      <SwrProperty Include="X86BinPath=$(X86BinPath)" />
      <SwrProperty Include="X64BinPath=$(X64BinPath)" />
      <SwrProperty Include="TaskHostBinPath=$(MSBuildTaskHostBinPath)" />
      <SwrProperty Include="TaskHostX64BinPath=$(MSBuildTaskHostX64BinPath)" />
      <SwrProperty Include="MSBuildConversionBinPath=$(MSBuildConversionBinPath)" />
    </ItemGroup>
  </Target>

  <Import Project="$(RepoRoot)eng\ProducesNoOutput.Settings.props" Condition="$(ShouldSkipProject)"/>
</Project><commit_msg>Conditioning adding a swr file on building on full framework.<commit_after>﻿<!-- Copyright (c)  Microsoft.  All Rights Reserved.  Licensed under the Apache License, Version 2.0.  See License.txt in the project root for license information. -->
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>$(FullFrameworkTFM)</TargetFramework>
    <!-- <ApplyPartialNgenOptimization>true</ApplyPartialNgenOptimization> -->

    <!-- VS Insertion -->
    <TargetVsixContainerName>Microsoft.Build.vsix</TargetVsixContainerName>
    <VisualStudioInsertionComponent>Microsoft.Build</VisualStudioInsertionComponent>

    <ShouldSkipProject>false</ShouldSkipProject>
    <ShouldSkipProject Condition="'$(MonoBuild)' == 'true' or '$(MSBuildRuntimeType)' != 'Full'">true</ShouldSkipProject>
  </PropertyGroup>

  <ItemGroup>
    <ProjectReference Include="..\..\Build\Microsoft.Build.csproj" PrivateAssets="All"/>
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="MicroBuild.Plugins.SwixBuild" Version="$(MicroBuildPluginsSwixBuildVersion)" PrivateAssets="all" IsImplicitlyDefined="true" />
  </ItemGroup>

  <ItemGroup>
    <SwrProperty Include="ThirdPartyNotice=$(ThirdPartyNotice)" />
    <SwrProperty Include="SourceDir=$(RepoRoot)\src\" />

    <!-- Only add the swr file when building on full framework msbuild, otherwise,
    this triggers a build of the swixproj, which is not supported in core msbuild. -->
    <SwrFile Include="*.swr" Condition=" '$(MSBuildRuntimeType)' == 'Full' " />
  </ItemGroup>

  <!-- GetBinPaths depends on GetBuildVersion which does not get imported if ProducesNoOutput.Settings.props is imported-->
  <Import Project="..\GetBinPaths.targets" Condition="!$(ShouldSkipProject)"/>

  <Target Name="SetVsixProperties"
    BeforeTargets="Build"
    DependsOnTargets="SetBinPaths"
    Condition="!$(ShouldSkipProject)">
    <ItemGroup>
      <SwrProperty Include="Version=$(BuildVersion)" />
      <SwrProperty Include="X86BinPath=$(X86BinPath)" />
      <SwrProperty Include="X64BinPath=$(X64BinPath)" />
      <SwrProperty Include="TaskHostBinPath=$(MSBuildTaskHostBinPath)" />
      <SwrProperty Include="TaskHostX64BinPath=$(MSBuildTaskHostX64BinPath)" />
      <SwrProperty Include="MSBuildConversionBinPath=$(MSBuildConversionBinPath)" />
    </ItemGroup>
  </Target>

  <Import Project="$(RepoRoot)eng\ProducesNoOutput.Settings.props" Condition="$(ShouldSkipProject)"/>
</Project>
{'fraction_non_alphanumeric': 0.14444444444444443, 'fraction_numerical': 0.006349206349206349, 'mean_word_length': 5.230225988700565, 'pattern_counts': {'":': 0, '<': 87, '<?xml version=': 0, '>': 87, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '6265626', 'n_tokens_mistral': 1343, 'n_tokens_neox': 1227, 'n_words': 230}