Fody.MethodTimer doesn't work when I compile the source code
johnson-brown opened this issue · 9 comments
So, I downloaded the Fody.MethodTimer, updated the nuget packages and compiled the solution.
Next, I created a Library project and added the [Time] attribut on a method.
I opened the .dll with dotPeek, but the generated code was exactly the same. and nothing was weaved ?
How can I get that to work without downloading the Nuget package ?
Thanks in advance :)
did you add fody to the project?
Yes, Of course I did
upload a copy of your solution somewhere
here is it : http://tinyurl.com/q8xqqhr
ok the solution doesnt use fody internally to test itself.
What are you trying to achieve?
My intention is explained here :
http://stackoverflow.com/questions/23779595/log-the-time-spent-by-a-method-using-an-attribut
I wanted to pick your code and figure out how to adapt it to my situation !
use this https://github.com/Fody/MethodTimer#what-gets-compiled-with-an-interceptor
and in //Do some logging here
call log4net directly
u should not need anotar for that
Nevermind about my previous comment, I got it to work with your instructions.
Thanks again :)