Get PostSharp to Work .NET 4 and below apps on VS 11 Beta/Win 8

Note: This so far is working on any targeted project that Visual Studio 11 except .NET 4.5.  If something specific is not working on say .net 4 or 3.5 please let me know and I will update this post.

Just to highlight the note this only works so far with non .NET 4.5 applications.

Setup:

After you install Windows 8 and Visual Studio 11 you need to enable the .NET Framework 3.5.1.  You do this by doing the following:

Option 1:

  1. Go to Settings –> Control Panel –> Programs –> Programs and Features –> Click Turn windows Features on or off
  2. Select .NET Framework 3.5.1 and click OKWindows Features
  3. After the downloading of the components are complete you will need to reboot win8.
  4. After that any .NET 4/3.5 application should compile and add the Aspects correctly to your project.

Option 2:

  1. Create a .NET 4 application
  2. Apply PostSharp and PostSharp-Aspects though Nuget and compile you will get this message:
    CropperCapture[6]
  3. Click to Download and Install this feature.
  4. Reboot windows 8
  5. Should be good to go.
Advertisement
This entry was posted in PostSharp, Visual Studio and tagged , , . Bookmark the permalink.

2 Responses to Get PostSharp to Work .NET 4 and below apps on VS 11 Beta/Win 8

  1. mgroves says:

    Thank you for pointing this out on Twitter, I added a link back to here from my blog post: http://crosscuttingconcerns.com/PostSharp-on-Windows-8

  2. It’s very effortless to find out any matter on web as compared to books, as I found this post at this site.

Comments are closed.