-
Notifications
You must be signed in to change notification settings - Fork 386
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
Failed to resolve assembly. #21
Comments
Debug logging is something I've been hoping to add to coverlet. Do you have a simple repro project I can take a look at? |
Unfortunately not. I did try to set one up, but not knowing what the problem was, meant I couldn't get the test repo into the same state as our production one. :-( And I can't hand that over. :-s I've added some |
I'm not there yet, but here's an update: So basically inside Cecil. I'm working on a theory. If it pans out, I'll report back. Otherwise, any thoughts? |
My best guess is that when Cecil rewrites the assembly it misses out the references but I can't be so sure. Lemme know how your theory pans out |
Theory didn't pan out. Looks like it's 2 specific Assemblies that have the issue. Ensuring that the dependency it's failing to find is instrumented first didn't do anything to improve the situation, so still stumbling around in the dark. |
Just opening and re-writing the assemblies with mono.cecil causes the error. Something fishy there :-( Might take me a while to track down. |
Can I see the unsanitized error output? |
@tonerdo I could, but it's literally the same as what you see. It's just the assembly names that were changed. As it turns out. I have been able to track down the error, and come up with a solution. |
If still running into this issue though you consume a package which has the fix included, this fixed it for me: #33 (comment) |
Hi. Firstly, thanks for your efforts. By far the best approach I've seen so far in this space.
I've got a rather large solution with many interdependencies between projects. When I run my tests, for almost all of the projects I see the following error:
obviously sanitised.
AnotherAssembly
isn't a direct dependency of the TestProject, but is built - to the version specified, and is in the bin directory along with all the other dependencies.Any idea what might be wrong? Or better still, teach a bloke to fish: Is there some way of turning up the logging on coverlet to help debug? (can't actually say I've seen anything in the code which looks like it might help with this, but I haven't specifically been looking for it. will look now)
Cheers,
Paul
The text was updated successfully, but these errors were encountered: