<commit_before>﻿<!--
***********************************************************************************************
Microsoft.Common.Mono.After.targets

WARNING:  DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
          created a backup copy.  Incorrect changes to this file will make it
          impossible to load or build your projects from the command-line or the IDE.

Copyright (C) Microsoft Corporation. All rights reserved.
***********************************************************************************************
-->

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    <UsingTask TaskName="Mono.Build.Tasks.FilterDeniedAssemblies" AssemblyFile="$(MSBuildExtensionsPath)\Mono.Build.Tasks.dll" />

    <PropertyGroup>
        <FilterDeniedAssemblies Condition="$(FilterDeniedAssemblies) == ''">false</FilterDeniedAssemblies>
    </PropertyGroup>

    <Target
        Name="FilterDeniedAssemblyReferences"
        BeforeTargets="ResolveAssemblyReferences"
        Condition="'$(FilterDeniedAssemblies)' == 'true'">

        <FilterDeniedAssemblies References="@(Reference)" SearchPaths="$(TargetFrameworkDirectory);$(DesignTimeFacadeDirectories)">
            <Output TaskParameter="DeniedReferencesThatCouldNotBeFixed" ItemName="DeniedReferencesThatCouldNotBeFixed" />
            <Output TaskParameter="FilteredReferences" ItemName="FilteredReferences" />
        </FilterDeniedAssemblies>

        <ItemGroup>
            <Reference Remove="@(Reference)" />
            <Reference Include="@(FilteredReferences)" />
        </ItemGroup>
    </Target>

</Project><commit_msg>[mono] Filter windows-specific net4x assemblies (#40)<commit_after>﻿<!--
***********************************************************************************************
Microsoft.Common.Mono.After.targets

WARNING:  DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
          created a backup copy.  Incorrect changes to this file will make it
          impossible to load or build your projects from the command-line or the IDE.

Copyright (C) Microsoft Corporation. All rights reserved.
***********************************************************************************************
-->

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    <UsingTask TaskName="Mono.Build.Tasks.FilterDeniedAssemblies" AssemblyFile="$(MSBuildExtensionsPath)\Mono.Build.Tasks.dll" />

    <!--
         This closely depends on Microsoft/Microsoft.NET.Build.Extensions/Microsoft.NET.Build.Extensions.NETFramework.targets .
         Specifically, on the `ImplicitlyExpandNETStandardFacades` target which sets

            $(ImplicitlyExpandNETStandardFacades),
            $(DependsOnNETStandard) and
            $(NETStandardInbox)

        and is enabled only for '$(TargetFrameworkIdentifier)' == '.NETFramework'.

        Default:
        - Run this only for .net framework projects 4.6.1 - 4.7, which have any references depending on netstandard
         -->
    <Target
        Name="FilterDeniedAssemblyReferences"
        BeforeTargets="ResolveAssemblyReferences"
        Condition="'$(FilterDeniedAssemblies)' == 'true'
                        or ('$(EnableFilteringDeniedAssembliesForNet46xProjects)' != 'false' and '$(FilterDeniedAssemblies)' == ''
                            and '$(TargetFrameworkIdentifier)' == '.NETFramework' and '$(ImplicitlyExpandNETStandardFacades)' == 'true'
                            and '$(DependsOnNETStandard)' == 'true'  AND '$(NETStandardInbox)' != 'true' AND '$(_TargetFrameworkVersionWithoutV)' &lt; '4.7.1')">

        <FilterDeniedAssemblies References="@(Reference)" SearchPaths="$(TargetFrameworkDirectory);$(DesignTimeFacadeDirectories)">
            <Output TaskParameter="DeniedReferencesThatCouldNotBeFixed" ItemName="DeniedReferencesThatCouldNotBeFixed" />
            <Output TaskParameter="FilteredReferences" ItemName="FilteredReferences" />
        </FilterDeniedAssemblies>

        <ItemGroup>
            <Reference Remove="@(Reference)" />
            <Reference Include="@(FilteredReferences)" />
        </ItemGroup>
    </Target>

</Project>
{'fraction_non_alphanumeric': 0.19373355656541497, 'fraction_numerical': 0.005022721836881129, 'mean_word_length': 3.996415770609319, 'pattern_counts': {'":': 0, '<': 36, '<?xml version=': 0, '>': 36, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '7255572', 'n_tokens_mistral': 1064, 'n_tokens_neox': 968, 'n_words': 222}