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 Pos开发者_Python百科tSharp.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?
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.
精彩评论