586833e906
Former-commit-id: 9913f29de40c446ea428d965c83d911dbfe6d647
14 lines
1011 B
XML
14 lines
1011 B
XML
<?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>
|