JasperFx / lamar

Fast Inversion of Control Tool and Successor to StructureMap
https://jasperfx.github.io/lamar
MIT License
572 stars 119 forks source link

TheCallingAssembly throw exception on french computer #196

Closed Maxime-Deharbonnier closed 5 years ago

Maxime-Deharbonnier commented 5 years ago

There is a bug when i tried to use this method TheCallingAssembly on french computer because in CallingAssembly.Find(); the application get the stacktrace (in my case in french). The stacktrace in french looks like : à System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) and in english : at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) The bug append here: private static Assembly findAssembly(string stacktraceLine) { var candidate = stacktraceLine.Trim().Substring(3); // Works only for english version

jeremydmiller commented 5 years ago

Fixed by #197