How to know which exact .NET assembly is used

173 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 answers

0
Brad Christie On BEST ANSWER

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

0
Greg Bogumil On

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