I have a .net core 2.0 console app that does the following (simplified):
var a = Assembly.Load(Assembly.GetEntryAssembly() .GetRefe
There is an 'Assembly.Load' override that takes PDB data as a parameter. You need to explicitly load the debug symbols.
Check this SO post: Debug dynamically loaded assembly
Also check out this on MSDN: https://msdn.microsoft.com/en-us/library/twt16z2x(v=vs.110).aspx
Hope this helps