PandaWood / ExceptionReporter.NET

ExceptionReporter is a .NET component that gathers detailed information on an Exception and the application/system running it. It allows the user to copy, save or send a custom-formatted report to the developer
MIT License
51 stars 32 forks source link

List of assemblies does not contain the application's assembly. #28

Closed SlyFoxHayes closed 6 years ago

SlyFoxHayes commented 6 years ago

In the list of assemblies below, there should be a "MainMenu.exe", which is assembly with the application.

image

PandaWood commented 6 years ago

Right, it must just be because the AssemblyReferenceDigger only fetches referenced assemblies via GetReferencedAssemblies and doesn't include itself...

Though, this isn't quite that simple because we use this within an Office Addin and I believe that's the reason it's not easy to even know what the main calling code is, which I think is why we do this Assembly.GetEntryAssembly() ?? Assembly.GetCallingAssembly()

PandaWood commented 6 years ago

I believe this is fixed in the latest commit - I did a quick check on the demo and it looked right