Reputation: 29248
I have a dll file in the workspace of the project which is under maintenance. Is there any method to keep a watch on the dll and see which executable is loading it?
EDIT: I just need to find out which executable loads the dll? Can it be found using Process Explorer. I tried using FileMon by watching the events matching the file name. It didn't work.
Upvotes: 0
Views: 766
Reputation: 66617
You can use ProcessExplorer to see who is currently using or locking a dll.
I'm not aware of any tool that can tell you which executable references your dll without the exe actually running. Unless you can know that it is one of a limited number of applications - in which case you could examine each one with Reflector.
Or you could delete the dll and wait until an executable complains?
This is why the critical (missing) information in your question is whether you are looking to find out who is currently locking your dll, or whether you want to know who will be affected if you change it.
Upvotes: 3
Reputation: 4220
You can observe all (.NET) assembly bindings with Assembly Binding Log Viewer
Good article about that
Upvotes: 1
Reputation: 6315
You can use Filemon to monitor any file access to any file you want.
Upvotes: 2