Target application can't resolve assembly #761
Unanswered
sulan-blob
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
as I stated before in some questions, I made finally a Tracer and it works well. But I've got a single problem. When I integrate a Stopwatch for example at the entry and exit of a method, the Application complains at the start, something like this "FileNotFoundException: Could not load file or assembly 'System.Runtime.Extensions, Version...". It can be resolved when I place a System.Runtime.Extensions in the Application folder. But aren't there any other ways to solve a situation like that, without directly putting the *.dll in the Project? Maybe tell the compiler/linker or what ever the programm executes, to search in a particullar extern path? Because I would like that my Tracer is able to trace any project without manually putting the needed *.dll's in the Application. Just provide some paths where they can be resolved.
Can this be solved by the CustomAssemblyResolver or when I write my own AssemblyResolver? Will it handles this situation? Because it seems like this happens after Mono.Cecil is done with the work?
I have already tried to solve it by providing the CustomAssemblyResolver a path to the *.dll which should be resolved. Also tried to call Assembly.LoadFile (after embedding it with Mono.Cecil), but it also complains the same error as above, but with "System.Private.CoreLib".
Any ideas how this could be solved? :)
Beta Was this translation helpful? Give feedback.
All reactions