File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
src/coverlet.core/Helpers Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 25
25
</Target >
26
26
27
27
<Target Name =" RunTests" AfterTargets =" CopyMSBuildScripts" >
28
- <Exec Command =" dotnet test " $(MSBuildThisFileDirectory)test\coverlet.core.tests\coverlet.core.tests.csproj" -c $(Configuration) /p:CollectCoverage=true /p:CoverletOutputFormat=opencover" />
28
+ <Exec Command =" dotnet test " $(MSBuildThisFileDirectory)test\coverlet.core.tests\coverlet.core.tests.csproj" -c $(Configuration) /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Include=[coverlet.*]* " />
29
29
</Target >
30
30
31
31
<Target Name =" CreateNuGetPackage" AfterTargets =" RunTests" Condition =" $(Configuration) == 'Release'" >
Original file line number Diff line number Diff line change @@ -69,8 +69,13 @@ public static bool HasPdb(string module)
69
69
if ( entry . Type == DebugDirectoryEntryType . CodeView )
70
70
{
71
71
var codeViewData = peReader . ReadCodeViewDebugDirectoryData ( entry ) ;
72
- var peDirectory = Path . GetDirectoryName ( module ) ;
73
- return File . Exists ( Path . Combine ( peDirectory , Path . GetFileName ( codeViewData . Path ) ) ) ;
72
+ if ( codeViewData . Path == $ "{ Path . GetFileNameWithoutExtension ( module ) } .pdb")
73
+ {
74
+ // PDB is embedded
75
+ return true ;
76
+ }
77
+
78
+ return File . Exists ( codeViewData . Path ) ;
74
79
}
75
80
}
76
81
You can’t perform that action at this time.
0 commit comments