-
Notifications
You must be signed in to change notification settings - Fork 388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to instrument module - NET 8 - Microsoft.Extensions.Logging.Abstractions #1631
Comments
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. |
Actually should be transparent. What that fix is expected to do is to scan the machine installed frameworks and load needed assemblies from there. |
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 |
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 #1631 (comment) 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 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 #1231 (comment)
The text was updated successfully, but these errors were encountered: