How to know which exact .NET assembly is used

172 Views Asked by At

I need to know exactly which FSharp.Compiler.dll file the Fsc.exe is using. I have reasons to believe that it is not using the file adjacent to it, so I want to know which one it does use. The version numbers are the same, but the locations are different.

Any ideas how to find out?

2

There are 2 best solutions below

0
On BEST ANSWER

Could always load up Process Explorer and see which DLLs are loaded.

0
On

If you already have a reference to the compiler object, you should do the following : compiler.GetType().Assembly.Location()