Postsharp at runtime

Questions about integration in Visual Studio, MSBuild or other IDEs or build tools.

Postsharp at runtime

Postby jmoisson on Wed Aug 13, 2008 5:13 am

Hi everybody,

I'm currently using Postsharp and it's working great. I saw on the doc that PS plateform can be used at runtime instead of compile time and this is what I'd like to do (I'd like to avoid installation on each developer's workstation, just include some files).
However I don't know how to do it, I have carefully read the example PostSharp.Samples.Host. But I am not sure this is what I am looking for. If someone has used PS at runtime only (without previous compilation using PS) I'm very interested.

One last thing: I hope i put this topic in the right category, change it if needed.

Thanks :)
jmoisson
 
Posts: 3
Joined: Wed Aug 13, 2008 4:07 am
First Name: Julien
Last Name: MOISSON
Company: NATIXIS

Re: Postsharp at runtime

Postby gfraiteur on Wed Aug 13, 2008 8:02 am

It can be indeed used at runtime, but only in very specific scenarios. For instance, if you are writing an application server, you may want to weave user assemblies.

There is no command-line utility for runtime weaving; you have to integrate PostSharp with your application (i.e. with your bootstrapper).

-gael
Gael Fraiteur, project leader
gfraiteur
Site Admin
 
Posts: 834
Joined: Tue Dec 18, 2007 3:09 pm
First Name: Gael
Last Name: Fraiteur
Company: postsharp.org

Re: Postsharp at runtime

Postby jmoisson on Wed Aug 13, 2008 8:12 am

Thanks for your reply.

So can I use the example i talked about above for "inspiration"?
jmoisson
 
Posts: 3
Joined: Wed Aug 13, 2008 4:07 am
First Name: Julien
Last Name: MOISSON
Company: NATIXIS

Re: Postsharp at runtime

Postby gfraiteur on Wed Aug 13, 2008 8:50 am

Yup.
Gael Fraiteur, project leader
gfraiteur
Site Admin
 
Posts: 834
Joined: Tue Dec 18, 2007 3:09 pm
First Name: Gael
Last Name: Fraiteur
Company: postsharp.org

Re: Postsharp at runtime

Postby jmoisson on Wed Aug 13, 2008 8:52 am

Thanks Gael. ;)
jmoisson
 
Posts: 3
Joined: Wed Aug 13, 2008 4:07 am
First Name: Julien
Last Name: MOISSON
Company: NATIXIS

Re: Postsharp at runtime

Postby gfraiteur on Wed Aug 13, 2008 9:53 am

All samples are released to the public domain, btw, so you can recklessly copy it.
Gael Fraiteur, project leader
gfraiteur
Site Admin
 
Posts: 834
Joined: Tue Dec 18, 2007 3:09 pm
First Name: Gael
Last Name: Fraiteur
Company: postsharp.org


Return to Integration with IDE and Build Scripts