File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed
src/coverlet.collector/build/netstandard1.0 Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and
12
12
<Target Name =" CopyCoverletDataCollectorFiles" AfterTargets =" ComputeFilesToPublish" >
13
13
<ItemGroup >
14
14
<CoverletDataCollectorFiles Include =" $(MSBuildThisFileDirectory)\*.*" />
15
- </ItemGroup >
15
+ </ItemGroup >
16
16
<Copy SourceFiles =" @(CoverletDataCollectorFiles)" DestinationFolder =" $(PublishDir)%(RecursiveDir)" />
17
17
18
18
</Target >
@@ -21,4 +21,26 @@ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and
21
21
<VSTestTestAdapterPath >$(VSTestTestAdapterPath);$(MSBuildThisFileDirectory)</VSTestTestAdapterPath >
22
22
</PropertyGroup >
23
23
</Target >
24
+
25
+ <Target Name =" ReferencedPathMaps" BeforeTargets =" CoreCompile" >
26
+ <MSBuild Projects =" @(ProjectReference->'%(FullPath)')"
27
+ Targets =" CoverletGetPathMap" SkipNonexistentTargets =" true" >
28
+ <Output TaskParameter =" TargetOutputs"
29
+ ItemName =" _LocalTopLevelSourceRoot" />
30
+ </MSBuild >
31
+ <ItemGroup >
32
+ <_byProject Include =" @(_LocalTopLevelSourceRoot->'%(MSBuildSourceProjectFile)')" OriginalPath =" %(Identity)" />
33
+ <_mapping Include =" @(_byProject->'%(Identity)|%(OriginalPath)=%(MappedPath)')" />
34
+ </ItemGroup >
35
+ <PropertyGroup >
36
+ <_sourceRootMappingFilePath >$(OutputPath)CoverletSourceRootsMapping</_sourceRootMappingFilePath >
37
+ </PropertyGroup >
38
+ <WriteLinesToFile File =" $(_sourceRootMappingFilePath)" Lines =" @(_mapping)"
39
+ Overwrite =" true" Encoding =" Unicode"
40
+ Condition =" '@(_mapping)'!=''"
41
+ WriteOnlyWhenDifferent =" true" />
42
+ <ItemGroup >
43
+ <FileWrites Include =" $(_sourceRootMappingFilePath)" Condition =" '@(_mapping)'!=''" />
44
+ </ItemGroup >
45
+ </Target >
24
46
</Project >
You can’t perform that action at this time.
0 commit comments