I created a BuffaloTrace and overrode the Before() to print some trace statment, then run BuffaloAOP.exe on the target dll and after a bit the following error occurred:
Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object.
at Buffalo.MethodBoundaryInjector.Inject(AssemblyDefinition assemblyDefinitio
n, Dictionary2 eligibleMethods) in c:\Users\wliao\Documents\Visual Studio 2012\ Projects\buffalo\Buffalo\MethodBoundaryInjector.cs:line 27 at Buffalo.Weaver.<Inject>b__4(IInjectable x) in c:\Users\wliao\Documents\Vis ual Studio 2012\Projects\buffalo\Buffalo\Weaver.cs:line 56 at System.Collections.Generic.List1.ForEach(Action`1 action)
at Buffalo.Weaver.Inject(String outPath) in c:\Users\wliao\Documents\Visual S
tudio 2012\Projects\buffalo\Buffalo\Weaver.cs:line 56
at BuffaloAOP.Program.Main(String[] args) in c:\Users\wliao\Documents\Visual
Studio 2012\Projects\buffalo\BuffaloAOP\Program.cs:line 23
C:\Users\wliao\Documents\Visual Studio 2012\Projects\buffalo\BuffaloAOP\bin\Debug
I created a BuffaloTrace and overrode the Before() to print some trace statment, then run BuffaloAOP.exe on the target dll and after a bit the following error occurred:
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object. at Buffalo.MethodBoundaryInjector.Inject(AssemblyDefinition assemblyDefinitio n, Dictionary
2 eligibleMethods) in c:\Users\wliao\Documents\Visual Studio 2012\ Projects\buffalo\Buffalo\MethodBoundaryInjector.cs:line 27 at Buffalo.Weaver.<Inject>b__4(IInjectable x) in c:\Users\wliao\Documents\Vis ual Studio 2012\Projects\buffalo\Buffalo\Weaver.cs:line 56 at System.Collections.Generic.List
1.ForEach(Action`1 action) at Buffalo.Weaver.Inject(String outPath) in c:\Users\wliao\Documents\Visual S tudio 2012\Projects\buffalo\Buffalo\Weaver.cs:line 56 at BuffaloAOP.Program.Main(String[] args) in c:\Users\wliao\Documents\Visual Studio 2012\Projects\buffalo\BuffaloAOP\Program.cs:line 23C:\Users\wliao\Documents\Visual Studio 2012\Projects\buffalo\BuffaloAOP\bin\Debug