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
 

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
gfraiteur
 

Re: PostSharp to enhance System.* libraries

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

Is it not possible with LAOS?
jiridj
 

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
gfraiteur
 


Return to Unordered Thoughts