Closed daveMueller closed 6 months ago
I start working on this.
@dovic95 I can't reproduce it with our integration tests that we used in the past for this issue even after upgrading them to net8. Could you probably try to create a small repro for us? That would be really helpful to analyse the issue.
Do you guys still have the issue? @MarcoRossignoli when you say that this issue is fixed in https://github.com/coverlet-coverage/coverlet/pull/1449, is there any specific thing to do to get rid of this issue?
Actually should be transparent. What that fix is expected to do is to scan the machine installed frameworks and load needed assemblies from there. Microsoft.Extensions.*
should be found in asp.net runtime folders.
Hi @daveMueller. Could you please let us know if there is any progress in resolving this issue so far?
Hi @izpavlovich, I couldn't reproduce it anymore with our current release + the repro we used the last time for this issue. I couldn't spend more time into trying to reproduce it and thus there currently is not progress. If anybody could provide a simple repro for this issue I guess we could solve it really quick.
Here's a simple repo that shows the issue with DependencyInjection.Abstractions: https://github.com/drinck-kbx/coverlet-dependencyinjection-abstractions8.
It can be fixed by copying the Microsoft.Extensions.DependencyInjection.Abstractions from the refs folder to the parent one, as suggested by @304NotModified, or removing the default '= ServiceLifetime.Transient' from the ServiceDescriptorExtensions.
@rinckd Thanks for that. I try to take a look as soon as possible. Really annoying issue. It feels like with every new .NET
release assemblies are stored somewhere else...
I start working on this issue...
Thank you @daveMueller!
I've merged a small change that should fix the issue. At least it works for the repro provided here https://github.com/coverlet-coverage/coverlet/issues/1631#issuecomment-2057063145 by @rinckd. If anyone wants to test it, you can give it a try by consuming our nightly build.
@daveMueller is there any chance to get this with a 6.0.3
hotfix released?
We are struck by this and there doesn't seem to be any reasonable workaround for it :-(
(And just to confirm it: With the nightly, this specific problem is actually fixed).
I have tried several workarounds, but the only one that works is copying the
Microsoft.Extensions.Logging.Abstractions
from the refs folder to the parent one, as suggested by @304NotModified.Do you guys still have the issue? @MarcoRossignoli when you say that this issue is fixed in #1449, is there any specific thing to do to get rid of this issue?
Originally posted by @dovic95 in https://github.com/coverlet-coverage/coverlet/issues/1231#issuecomment-1883779381