开发者

Log4PostSharp for PostSharp 2.0 and .NET framework 2.0

开发者 https://www.devze.com 2023-02-09 11:13 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消