Skip to content

Commit bb24630

Browse files
Remove coverlet workaround
Remove redundant workaround for deterministic builds.
1 parent b52ccc2 commit bb24630

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed

Directory.Build.targets

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -27,39 +27,4 @@
2727
</AssemblyAttribute>
2828
</ItemGroup>
2929
</Target>
30-
<!--
31-
Workaround bug in generation of _LocalTopLevelSourceRoot file path.
32-
See https://github.com/coverlet-coverage/coverlet/pull/863.
33-
-->
34-
<Target Name="ReferencedPathMaps" BeforeTargets="CoreCompile" DependsOnTargets="ResolveProjectReferences" >
35-
<MSBuild Projects="@(AnnotatedProjects->'%(FullPath)')"
36-
Targets="CoverletGetPathMap"
37-
Properties="TargetFramework=%(AnnotatedProjects.NearestTargetFramework)"
38-
SkipNonexistentTargets="true">
39-
<Output TaskParameter="TargetOutputs"
40-
ItemName="_LocalTopLevelSourceRoot" />
41-
</MSBuild>
42-
<ItemGroup>
43-
<_byProject Include="@(_LocalTopLevelSourceRoot->'%(MSBuildSourceProjectFile)')" OriginalPath="%(Identity)" />
44-
<_mapping Include="@(_byProject->'%(Identity)|%(OriginalPath)=%(MappedPath)')" />
45-
</ItemGroup>
46-
<PropertyGroup>
47-
<_sourceRootMappingFilePath>$([System.IO.Path]::Combine('$(OutputPath)', 'CoverletSourceRootsMapping'))</_sourceRootMappingFilePath>
48-
</PropertyGroup>
49-
<WriteLinesToFile File="$(_sourceRootMappingFilePath)" Lines="@(_mapping)"
50-
Overwrite="true" Encoding="Unicode"
51-
Condition="'@(_mapping)'!=''"
52-
WriteOnlyWhenDifferent="true" />
53-
<ItemGroup>
54-
<FileWrites Include="$(_sourceRootMappingFilePath)" Condition="'@(_mapping)'!=''" />
55-
</ItemGroup>
56-
</Target>
57-
<Target Name="CoverletGetPathMap"
58-
DependsOnTargets="InitializeSourceRootMappedPaths"
59-
Returns="@(_LocalTopLevelSourceRoot)"
60-
Condition="'$(DeterministicSourcePaths)' == 'true'">
61-
<ItemGroup>
62-
<_LocalTopLevelSourceRoot Include="@(SourceRoot)" Condition="'%(SourceRoot.NestedRoot)' == ''"/>
63-
</ItemGroup>
64-
</Target>
6530
</Project>

0 commit comments

Comments
 (0)