Skip to content

Problem with coverage after upgrading to .net5[WindowsDesktop app] #1221

@abdelrahman-alfar

Description

@abdelrahman-alfar

C:\Users\bamboo.nuget\packages\coverlet.msbuild\3.1.0\build\coverlet.msbuild.targets(39,5): warning : [coverlet] Unable to instrument module: XXX because : AssemblyResolutionException for 'PresentationFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Try to add true to test projects or pass '/p:CopyLocalLockFileAssemblies=true' option to the 'dotnet test' command-line

After upgrading to .net5 we have a problem with coverage for one of our projects, the rest of the projects are correctly detected

I tried both suggestions but nothing happens keep receiving the above error

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementGeneral enhancement request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions