question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Latest NuGet package no longer works

See original GitHub issue

Hi there we upgraded our coverlet NuGet package from 2.5.1 to 2.6, and now when we collect code coverage we face the following error on our previously working build: 2019-03-05T03:32:00.3145123Z /root/.nuget/packages/coverlet.msbuild/2.6.0/build/netstandard2.0/coverlet.msbuild.targets(35,5): error : One or more errors occurred. (Could not find file ‘/tmp/xunit.runner.visualstudio.dotnetcore.testadapter_4b89fa9e-938a-4b8b-9462-1be5220ac0f4.pdb’.) (Could not find file ‘/tmp/xunit.runner.visualstudio.dotnetcore.testadapter_4b89fa9e-938a-4b8b-9462-1be5220ac0f4.pdb’.) (Could not find file ‘/tmp/xunit.runner.visualstudio.dotnetcore.testadapter_4b89fa9e-938a-4b8b-9462-1be5220ac0f4.pdb’.) (Could not find file ‘/tmp/xunit.runner.visualstudio.dotnetcore.testadapter_4b89fa9e-938a-4b8b-9462-1be5220ac0f4.pdb’.) (Could not find file ‘/tmp/xunit.runner.visualstudio.dotnetcore.testadapter_4b89fa9e-938a-4b8b-9462-1be5220ac0f4.pdb’.) (Could not find file ‘/tmp/xunit.runner.visualstudio.dotnetcore.testadapter_4b89fa9e-938a-4b8b-9462-1be5220ac0f4.pdb’.) (Could not find file ‘/tmp/xunit.runner.visualstudio.dotnetcore.testadapter_4b89fa9e-938a-4b8b-9462-1be5220ac0f4.pdb’.) (Could not find file ‘/tmp/xunit.runner.visualstudio.dotnetcore.testadapter_4b89fa9e-938a-4b8b-9462-1be5220ac0f4.pdb’.) (Could not find file ‘/tmp/xunit.runner.visualstudio.dotnetcore.testadapter_4b89fa9e-938a-4b8b-9462-1be5220ac0f4.pdb’.) (Could not find file ‘/tmp/xunit.runner.visualstudio.dotnetcore.testadapter_4b89fa9e-938a-4b8b-9462-1be5220ac0f4.pdb’.) [/app/[redacted].UnitTests/[redacted].UnitTests.csproj] 2019-03-05T03:32:00.3171472Z /root/.nuget/packages/coverlet.msbuild/2.6.0/build/netstandard2.0/coverlet.msbuild.targets(35,5): error : at Coverlet.Core.RetryHelper.Do[T](Func1 action, Func1 backoffStrategy, Int32 maxAttemptCount) in /Users/toni/Workspace/coverlet/src/coverlet.core/Helpers/RetryHelper.cs:line 58 [/app/[redacted].UnitTests/[redacted].UnitTests.csproj] 2019-03-05T03:32:00.3183781Z /root/.nuget/packages/coverlet.msbuild/2.6.0/build/netstandard2.0/coverlet.msbuild.targets(35,5): error : at Coverlet.Core.RetryHelper.Retry(Action action, Func`1 backoffStrategy, Int32 maxAttemptCount) in /Users/toni/Workspace/coverlet/src/coverlet.core/Helpers/RetryHelper.cs:line 27 [/app/[redacted].UnitTests/[redacted].UnitTests.csproj] 2019-03-05T03:32:00.3195634Z /root/.nuget/packages/coverlet.msbuild/2.6.0/build/netstandard2.0/coverlet.msbuild.targets(35,5): error : at Coverlet.Core.Coverage.GetCoverageResult() in /Users/toni/Workspace/coverlet/src/coverlet.core/Coverage.cs:line 108 [/app/[redacted].UnitTests/[redacted].UnitTests.csproj] 2019-03-05T03:32:00.3208948Z /root/.nuget/packages/coverlet.msbuild/2.6.0/build/netstandard2.0/coverlet.msbuild.targets(35,5): error : at Coverlet.MSbuild.Tasks.CoverageResultTask.Execute() in /Users/toni/Workspace/coverlet/src/coverlet.msbuild.tasks/CoverageResultTask.cs:line 67 [/app/[redacted].UnitTests/[redacted].UnitTests.csproj] 2019-03-05T03:32:00.5604147Z The command ‘/bin/sh -c dotnet test --results-directory /testresults --logger “trx;LogFileName=test_results.xml” /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura /p:CoverletOutput=/testresults/coverage/ ./[redacted].UnitTests/[redacted].UnitTests.csproj’ returned a non-zero code: 1 2019-03-05T03:32:00.8160815Z ##[debug]$LASTEXITCODE: 1

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:7
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

36reactions
tomapcommented, Mar 5, 2019

I had the same issue. I solved it using /p:Exclude="[xunit*]*"

4reactions
jherby2kcommented, Mar 12, 2019

Yeah, this is the second minor version release that has blown up my CI. I’m already excluding xunit, but its reporting errors and returning a 1 exit code because it can’t find a PDB file for System.Threading.Tasks.Dataflow.dll. No effing kidding! That’s because its not my code.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting NuGet Package Restore in Visual Studio
Use NuGet Package Restore to download them. The missing file is {name}. This error occurs when you attempt to build a project that...
Read more >
NuGet Package Restore Not Working
Open solution, go into Tools > Nuget Package Manager > Package Manager Settings and Clear all Nuget caches . Check the console because...
Read more >
Nuget package restore no longer works with latest VS for Mac
My packages folder is empty, and yet when I do a Restore it gives no errors and completes after 2 seconds, and yet...
Read more >
Nuget package restore not working vs2019 · Issue #8852
Building a project throws this error: This project references NuGet package(s) that are missing on this computer. Enable NuGet Package ...
Read more >
Fix Not available in this source | NuGet Visual Studio Error ...
Trying to Install/Reinstall NuGet packages, but getting a "Not available in ... to know about fixing that and getting everything working again.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found