Skip to content

Commit 3cd1843

Browse files
committed
use condition for CoverletToolsPath
1 parent ec77374 commit 3cd1843

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/coverlet.msbuild.tasks/coverlet.msbuild.props

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818
<ThresholdStat Condition="$(ThresholdStat) == ''">minimum</ThresholdStat>
1919
<ExcludeAssembliesWithoutSources Condition="$(ExcludeAssembliesWithoutSources) == ''"></ExcludeAssembliesWithoutSources>
2020
</PropertyGroup>
21-
<PropertyGroup>
21+
<PropertyGroup Condition=" '$(OS)' == 'Windows_NT' ">
2222
<CoverletToolsPath Condition=" '$(CoverletToolsPath)' == '' ">$(MSBuildThisFileDirectory)..\tasks\netstandard2.0\</CoverletToolsPath>
2323
</PropertyGroup>
24+
<PropertyGroup Condition=" '$(OS)' != 'Windows_NT' ">
25+
<CoverletToolsPath Condition=" '$(CoverletToolsPath)' == '' ">$(MSBuildThisFileDirectory)../tasks/netstandard2.0/</CoverletToolsPath>
26+
</PropertyGroup>
2427
</Project>

0 commit comments

Comments
 (0)