Closed duyn9uyen closed 2 years ago
I solved my issue. In my test project .csproj
file, I had a reference to both coverlet.collector
AND coverlet.msbuild
. I had to only include coverlet.msbuild
.
<PackageReference Include="coverlet.msbuild" Version="3.1.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
I am having trouble with generating a coverage report using Azure Devops Pipelines. The agent pool uses this docker linux image. Here is my task
error MSB4044: The "Coverlet.MSbuild.Tasks.CoverageResultTask" task was not given a value for the required parameter "InstrumenterState". ... ##[error]Error: The process '/usr/bin/dotnet' failed with exit code 1
When I run the cli command locally (Windows 10), it works fine and no error is mentioned about InstrumenterState.