How can I IL code weave a .Net Framework 2.0 C# application?

How can I IL code weave a .Net Framework 2.0 C# application?

I like to do some logging but I do not want intrusive code, I mean put log statements in every procedure.
All I want is an automatic insertions of logging after I have compiled my executable.

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Éric MoreauSenior .Net ConsultantCommented:
There are tools to do it easily. PostSharp is one of them and even offer a free version. Also have a look at my article introducing AOP using PostSharp at

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
stylelyfAuthor Commented:
We have upgraded a very old system to remove  all third party components and use free or open source instead. And approval of using a proprietary or paid version would take a while to defend it. I understand there is a free version, but my company would not be comfortable with it since there are features that would be available only on the paid version.

Are there any other alternatives to postsharp that are completely free, easy to use, but also as good? And as strong as postsharp?
Éric MoreauSenior .Net ConsultantCommented:
I don't understand why you don't want to use the free postsharp. It already does more than other tools. If you really don't want to use it, check
stylelyfAuthor Commented:
I've requested that this question be closed as follows:

Accepted answer: 0 points for stylelyf's comment #a40776125

for the following reason:

Ok. You convinced me. Including postsharp in my options. Thanks.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.