Skip to content

Commit 620ca89

Browse files
authored
Fix disabled code coverage for src folder. (#2259)
* fix disabled code coverage for src folder. * add comment.
1 parent 2f0c475 commit 620ca89

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

test/Directory.Build.props

-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
<TargetFramework Condition="$(Configuration.EndsWith('-netfx'))">net461</TargetFramework>
77
<TargetFramework Condition="'$(UseIntrinsics)' == 'true'">netcoreapp3.0</TargetFramework>
88
<RuntimeIdentifier Condition="'$(TargetFramework)' == 'net461'">win-x64</RuntimeIdentifier>
9-
<!-- This is required in order to have following extension files in the output folder of the projects referencing other projects. -->
10-
<AllowedReferenceRelatedFileExtensions>$(AllowedReferenceRelatedFileExtensions);.runtimeconfig.json;.runtimeconfig.dev.json;.deps.json</AllowedReferenceRelatedFileExtensions>
119
<IsPackable>false</IsPackable>
1210
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1311

test/Directory.Build.targets

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
<Import Project="..\Directory.Build.targets" />
44

5+
<PropertyGroup>
6+
<!-- This needs to be in Directory.Build.targets or the default value for AllowedReferenceRelatedFileExtensions will not be applied.
7+
This is required in order to have following extension files in the output folder of the projects referencing other projects. -->
8+
<AllowedReferenceRelatedFileExtensions>$(AllowedReferenceRelatedFileExtensions);.runtimeconfig.json;.runtimeconfig.dev.json;.deps.json</AllowedReferenceRelatedFileExtensions>
9+
</PropertyGroup>
10+
511
<!-- Workaround for https://github.com/tonerdo/coverlet/pull/318 -->
612
<Target Name="UpdateTargetPathForCoverage" BeforeTargets="InstrumentModulesNoBuild;InstrumentModulesAfterBuild">
713
<PropertyGroup>

0 commit comments

Comments
 (0)