I forgot to mention it in the last announcement: support for ASP.NET web sites has been polished and is now fairly easy. If you installed PostSharp on your machine using the installer, enabling it on your ASP.WEB web site project is done in two steps:

  • Add references to PostSharp.Public.dll, PostSharp.Laos.dll and PostSharp.AspNet.dll
  • Add the following stuff to your web.config:

More details in the user guide.

Happy PostSharping!


Comments (1) -

Barak Ulmann
Barak Ulmann
11/18/2009 10:33:32 AM #

Few more things need mentioning:
* In order for the POSTSHARP15 to be recognized the computer must be restarted
* For some reason after modifying the web.config file by adding the compilation/@assemblyPostProcessorType instruction I still got Postsharp build exception "PostSharp did not complete successfully. Enable PostSharp tracing to see details."
* I enabled trace by adding the advanced PostSharp configuration:

and edited the PostSharp-Library.config file
* Finally I got a details log with ILASM exception which I don't know how to resolve:
error PS0034: ILASM exited with return code 1. Tool output:

***** FAILURE *****
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\isrotel\a4ed771e\e50fd771\he\postsharp\App_GlobalResources.apo2f9fr.resources.il(29) : error : syntax error at token '.' in:  .culture  "he"

Comments are closed