PostSharp is not being invoked

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

PostSharp is not being invoked

Postby ashwinphilar on Tue Aug 19, 2008 9:41 pm

Hi Gael,

Thanks for developing PostSharp and being so helpful.

I wish to use PostSharp without installation and I have done the following:

1. Copied the following files to a folder:

PostSharp.exe
PostSharp.Core.dll
PostSharp.Core.XmlSerializer.dll
PostSharp.Laos.dll
PostSharp.Laos.Weaver.dll
PostSharp.MSBuild.dll
PostSharp.Public.dll
PostSharp.Laos.psplugin
Default.psproj
PostSharp-1.0.targets
PostSharp.targets
PostSharp-AppDomain.config
PostSharp-Library.config
PostSharp-Platform.config

2. Added references to PostSharp.Laos.dll and PostSharp.Public.dll to the project containing the aspects ( let's say Project A)as well as the project referencing the aspects project dll (let's say Project B).

3. Imported PostSharp-1.0.targets in Project B

Project A and Project B are compiling, but when I compile Project B, I don't see PostSharp injecting the aspects in the assembly.

I had read on you Blog that importing the targets should be sufficient to manually invoke PostSharp. What am I missing?
ashwinphilar
 
Posts: 6
Joined: Mon May 05, 2008 7:11 pm
First Name: Ashwin
Last Name: Philar

Re: PostSharp is not being invoked

Postby gfraiteur on Tue Aug 19, 2008 10:02 pm

It should work. Did you import PostSharp AFTER C#/VB? The order is important.
Gael Fraiteur, project leader
gfraiteur
Site Admin
 
Posts: 835
Joined: Tue Dec 18, 2007 3:09 pm
First Name: Gael
Last Name: Fraiteur
Company: postsharp.org

Re: PostSharp is not being invoked

Postby ashwinphilar on Tue Aug 19, 2008 10:10 pm

Gael, thank you very much, that was the issue.

Regards,
Ashwin
ashwinphilar
 
Posts: 6
Joined: Mon May 05, 2008 7:11 pm
First Name: Ashwin
Last Name: Philar


Return to Integration with IDE and Build Scripts


cron