diff options
Diffstat (limited to '.packages/microsoft.net.compilers.toolset/3.3.0-beta2-19367-02/tasks/net472/Microsoft.Managed.EditorConfig.targets')
-rwxr-xr-x | .packages/microsoft.net.compilers.toolset/3.3.0-beta2-19367-02/tasks/net472/Microsoft.Managed.EditorConfig.targets | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/.packages/microsoft.net.compilers.toolset/3.3.0-beta2-19367-02/tasks/net472/Microsoft.Managed.EditorConfig.targets b/.packages/microsoft.net.compilers.toolset/3.3.0-beta2-19367-02/tasks/net472/Microsoft.Managed.EditorConfig.targets new file mode 100755 index 0000000000..d659d55470 --- /dev/null +++ b/.packages/microsoft.net.compilers.toolset/3.3.0-beta2-19367-02/tasks/net472/Microsoft.Managed.EditorConfig.targets @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="utf-8" ?> +<!-- 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 xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + + <ItemGroup> + <_AllDirectoriesAbove Include="@(Compile->GetPathsOfAllDirectoriesAbove())" Condition="'$(DiscoverEditorConfigFiles)' != 'false'" /> + <!-- Work around a GetPathsOfAllDirectoriesAbove() bug where it can return multiple equivalent paths when the + compilation includes linked files with relative paths - https://github.com/microsoft/msbuild/issues/4392 --> + <PotentialEditorConfigFiles Include="@(_AllDirectoriesAbove->'%(FullPath)'->Distinct()->Combine('.editorconfig'))" Condition="'$(DiscoverEditorConfigFiles)' != 'false'" /> + <EditorConfigFiles Include="@(PotentialEditorConfigFiles->Exists())" Condition="'$(DiscoverEditorConfigFiles)' != 'false'" /> + </ItemGroup> + +</Project> |