|
|
|
Community Member
|
|
Hi, is it possible to integrate postsharp globally at the Framework level, so that it will influence all .NET assemblies without the need to build them with PostSharp in the first place? for instance, take an exe that was not built with PostSharp and inject code into it.
Thanks
|
|
|
|
|
Gael Fraiteur
SharpCrafters
|
|
Yes, this is possible, but currently there is no way to provide aspects to PostSharp. So you should develop your own aspect provider (IAspectProvider) or custom attribute provider (IAnnotationProvider) using an add-in. You should also write a PostSharp project (*.psproj), then use the command-line utility.
I guess you can get it working in a couple of days, so consider how it's important to you.
The short answer is: it is possible, but not off-the-shelf.
-gael
|
|
|
|
|
Community Member
|
|
Thanks. Let's say i want to hook on a specific method from the Framework BCL, so that every time it is called i'll have the chance to do something. How can i do that? What configuration changes does it require at the .NET Framework?
|
|
|
|