PostSharp to enhance System.* libraries

Discuss simply about anything.

PostSharp to enhance System.* libraries

Postby jiridj on Fri Apr 25, 2008 3:32 pm

I am looking for a way to extend .Net Framework libraries at the platform level. I'm specifically interested in adding aspects for tracing messaging performed with System.Messaging. Is this possible with PostSharp in any way (with or without Laos)?
jiridj
 
Posts: 4
Joined: Fri Apr 25, 2008 3:27 pm
Location: Brussels
Full Name: Jiri De Jagere

Re: PostSharp to enhance System.* libraries

Postby gfraiteur on Sat Apr 26, 2008 7:57 pm

Using Core, you can modify assemblies even if you don't have the source code.

The problem is that System.Messaging is signed. You cannot sign it back after modification. A possible solution is to delay sign it, and to disable signature verification of this assembly using the sn utility.

Gael
Gael Fraiteur, project leader
got good support? consider donating to the project.
gfraiteur
Site Admin
 
Posts: 581
Joined: Tue Dec 18, 2007 3:09 pm
Full Name: Gael Fraiteur
Company: postsharp.org

Re: PostSharp to enhance System.* libraries

Postby jiridj on Mon May 05, 2008 6:15 pm

Is it not possible with LAOS?
jiridj
 
Posts: 4
Joined: Fri Apr 25, 2008 3:27 pm
Location: Brussels
Full Name: Jiri De Jagere

Re: PostSharp to enhance System.* libraries

Postby gfraiteur on Tue May 06, 2008 9:20 am

No, since there is currently no way to add aspect by another way than adding a custom attribute. But if you write a simple PostSharp Core tasks providing custom attributes, it would work.

Gael
Gael Fraiteur, project leader
got good support? consider donating to the project.
gfraiteur
Site Admin
 
Posts: 581
Joined: Tue Dec 18, 2007 3:09 pm
Full Name: Gael Fraiteur
Company: postsharp.org


Return to Unordered Thoughts


cron