Archive

If you belong to those who don't like global installations, the latest release candidate should make you happy: there is now a binary distribution without installer.

This distribution should remove much of the mystery about how PostSharp integrates in the build process. Actually, since the installer does not modify the MSBuild target files for you, you have to do it yourself. The interesting thing is that you can do it in a per-project basis: instead of modifying global MSBuild target files, you can just import PostSharp in the projects that actually need it.

If you think this kind of installation is for you, download the 'Binary - No Installer' package, and read carefully the installation instructions in the file doc/Build-Instructions.html.

Since this kind of distribution is quite new, I am looking forward for your comments.

Happy PostSharping!

Gael

Comments (5) -

Gabriel Schenker
Gabriel Schenker
3/6/2008 9:41:00 AM #

That is REALLY good news. I like PostSharp but I removed it after (successfully using) it since it was hooked into the compile process of every project even if not used...
Now I think I'll give it a try again!

Libor
Libor
3/7/2008 10:16:00 PM #

>>>it was hooked into the compile process of every project even if not used

imo thats not true. postsharp executes only if you reference some of postsharp`s dlls

I cant check it right now but I think last month Gael made a post where he explained how PostSharp is integrated into the build process so you can check it on your own :)

Gael Fraiteur
Gael Fraiteur
3/8/2008 12:14:00 PM #

Both statements are true. With global installation, PostSharp is hooked in the build process of all projects, but the auto-detection mechanism actually starts PostSharp only when it is needed. The global hook was harmless for non-PostSharp projects.

Libor
Libor
3/8/2008 5:18:00 PM #

Hi, just playing a bit with "PostSharp without the installer" and it works perfectly. And best on it is that Im testing PostSharp with SharpDevelop because I dont have VS2005/08 here and it works fine but I dont understand few things

1) In the help file "Install-Instructions.html" there is a mistake most probably.
In the section "1. Global Insertion: For All Projects" on the line where you define Import project you forgot ending " (check out the attribut Condition)

2) So I edited the file "Custom.After.Microsoft.Common.targets", wrote some simple AOP project to test PostSharp and during compilation I got error that "Default.psproj" wasnt found in the project directory. So I had to copy that file to my project directory and then it worked fine.
So do I need to copy the psproj file to every project directory to get it working?

Gael Fraiteur
Gael Fraiteur
3/8/2008 11:12:00 PM #

Tak jsem rád, že Vám to dob?e funguje :-)

1. I made the correction in the documentation. It will be in the next build.

2. I added to specify this point in the documentation:

In any case, edit the file PostSharp-1.0.targets and set the property <PostSharpDirectory> to the absolute path of the PostSharp directory.

Comments are closed