smatter
smatter

Reputation: 29248

Find out which executable references a .NET dll?

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

Answers (3)

Benjol
Benjol

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

Tadas Šukys
Tadas Šukys

Reputation: 4220

You can observe all (.NET) assembly bindings with Assembly Binding Log Viewer

Good article about that

Upvotes: 1

zweihander
zweihander

Reputation: 6315

You can use Filemon to monitor any file access to any file you want.

Upvotes: 2

Related Questions