Tips and Tricks in a world of Mix

Well , that is a very big disappointment ! The PostSharp 1.5 doesn’t work anymore !

The only solution is to buy PostSharp 2 or some illegal action about the dll’s of 1.5.

Nevertheless PostSharp 1.5 can work with VS 2010 with Framewrok 3.5 so if you are not using dynamics or some fancy sample architecture using only Framework 4 , you still can enjoy this genius  framework of PostSharp.

You must enter the project file and add those lines :

Stand on your project –> Unload Project –> Edit cproj  ->

  1: <PropertyGroup>
  2:   <PostSharpUseCommandLine>True</PostSharpUseCommandLine>
  3:   <DontImportPostSharp>True</DontImportPostSharp>
  4: </PropertyGroup>

and also :

  1: <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
  2: <Import Project="C:\Program Files\PostSharp 1.5\PostSharp-1.5.targets" />

That will enable you to work with PostSharp 1.5 in VS 2010.


If anyone has a solution for PostSharp 1.5 with Framework 4 it would be just splendid . Please send me a reference or an explanation..


Comments on: "Free PostSharp 1.5 doesn’t work with Framework 4" (2)

  1. Thanks Man!, this helped me!


  2. Laurent said:

    Thanks !! 🙂


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Tag Cloud

%d bloggers like this: