-
Notifications
You must be signed in to change notification settings - Fork 393
Closed
Labels
needs reproNeeds repro to be investigated, cannot repro in localNeeds repro to be investigated, cannot repro in local
Description
For some test projects, but not all, we get
/home/AzDevOps/.nuget/packages/coverlet.msbuild/3.1.0/build/coverlet.msbuild.targets(39,5): warning : [coverlet] Unable to instrument module: MyApi.dll because : AssemblyResolutionException for 'Microsoft.Extensions.Logging.Abstractions, Version=5.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. Try to add to test projects or pass '/p:CopyLocalLockFileAssemblies=' option to the 'dotnet test' command-line
Tried:
- Adding
<PreserveCompilationContext>true</PreserveCompilationContext>to csprojs - Also pass
/p:CopyLocalLockFileAssemblies=truetodotnet test - Included a package reference to Microsoft.Extensions.Logging.Abstractions directly in the test projects.
- upgrade coverlet from 3.0.3 to 3.1.0
Related:
- Coverlet can't instrument module on "net5.0" target #1098 (but I can't use preview packages),
- Problem with coverage after upgrading to .net5[WindowsDesktop app] #1221 (no solution yet)
- Unable to instrument module - due to Microsoft.Extensions.DependencyInjection.Abstractions #1102 (copy to publish not possible for us)
- probably more issues
PS I hope this helps to diagnose the issue #1196. I have run more than 10 builds (with 10 tries), but all have the same issue :(
hedasilv
Metadata
Metadata
Assignees
Labels
needs reproNeeds repro to be investigated, cannot repro in localNeeds repro to be investigated, cannot repro in local