ReVolly
ReVolly

Reputation: 126

Log4PostSharp for PostSharp 2.0 and .NET framework 2.0

I have a C# project targeting .NET framework 2.0. I also want to use PostSharp 2.0 Community Edition + Log4PostSharp. The problem is that it's not possible to use Log4PostSharp because it targets 3.5 framework. Also it's not possible to change Log4PostSharp's target framework to 2.0, because PostSharp.Sdk (2.0) is built against 3.5 framework.

Any suggestions what can be done to use Log4PostSharp 2.0 in a project targeting 2.0 framework?

Upvotes: 4

Views: 435

Answers (1)

Dustin Venegas
Dustin Venegas

Reputation: 759

I checked the source code for Log4PostSharp. It's not in Nuget so you'll need to manually download and compile either version 1 or 1.5 of log4postsharp to include with your project. Both of those versions are build against .NET 2.0. Alternatively, you can try out log4netAOP which is also supposed to work with PostSharp.

Upvotes: 0

Related Questions