Log4PostSharp for PostSharp 2.0 and the .NET framework 2.0

I have a C # project focused on the .NET framework 2.0. I also want to use PostSharp 2.0 Community Edition + Log4PostSharp. The problem is that it is impossible to use Log4PostSharp, as it targets a 3.5 framework. It is also not possible to change the target structure of Log4PostSharp to 2.0, because PostSharp.Sdk (2.0) is built against the 3.5 framework.

Any suggestions on what you can do to use Log4PostSharp 2.0 in a 2.0-targeted project?

+4
source share
1 answer

I checked the source code for Log4PostSharp. This is not in Nuget, so you will need to manually download and compile version 1 or 1.5 of log4postsharp to include in your project. Both of these versions are built against .NET 2.0. Alternatively, you can try log4netAOP , which should also work with PostSharp.

0
source

Source: https://habr.com/ru/post/1338650/


All Articles