Is there a way to obtain the location of an assembly's original source code location through reflection?
Warning, I'm not looking for the current location of the assembly, rather the location were the source code resided when it was compiled.
e.g.
Given: myAssembly.dll
c:\program files\myapp\myAssembly.dll <- I'm NOT looking for this location. This is its current location.
d:\dev\myapp\main.cs <- this is the location I want; the location were the source code resided when it was compiled
I started with this, but I haven't been able find which rabbit hole to go down to get this info so far.
Assembly.GetExecutingAssembly().GetType("myAssembly.Main").<something>
When exceptions occur in .Net you'll often see the name of the class that threw the exception along with the full path to the original source code file. This is what I'm after. I realize that a .pdb symbol file may be required in order to obtain this location.