Skip to content

CopyCoverletDataCollectorFiles overwrites newer version of NewtonSoft.Json.dll #1226

@sturnberg

Description

@sturnberg

I recently upgraded my project to .NET 5. When I publish the project I find that the latest version of NewtonSoft.Json.dll 13.0.1 is being overwritten by the version used by coverlet, 9.0.1. The version of Coverlet I'm using is 3.1.0.

If I publish with increased verbosity I can see exactly where the dll is being copied over.
10:6>CopyCoverletDataCollectorFiles:
Copying file from "C:\st.nuget\packages\coverlet.collector\3.1.0\build\netstandard1.0\Newtonsoft.Json.dll" to "C:\src\myProject\Source\Tests\Unit\MyProject.Tests.Unit\bin\Release\net5.0\publish\Newtonsoft.Json.dll".

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdriver-collectorsIssue related to collectors driverduplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions