Use the same build of log4net in .NET and Mono

I downloaded log4net, but I realized that there are different assemblies for .NET and Mono.

Is it possible to use the same assembly for .NET and Mono? I would not want to recompile the application or change the file manually, is there any way to add it or add two and put a condition somewhere?

Greetings.

+3
source share
3 answers

Yes, maybe use the special assembly CLI 1.0 Compatible. I think that there is a reason underlying their decision to provide various specific assemblies for different frameworks, however I do not know what really distinguishes these assemblies from each other.

+2

Mono .NET- ( Windows). , Mono .

+1

If you want your application to work with both .NET and Mono, I would suggest for something like log4net send the version of log4net that you want to use with your application. Just use this particular version, and it should be able to function normally using the runtime.

0
source

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


All Articles