log4net - want a .net 4.0 version
I love log4net, but am frustrated that t开发者_StackOverflowhere is no VS2010/.NET 4.0 version of it. So, decided that I will just grab is from SVN and have my own version of it.
Can someone please convince me that there is a better way to go? I like what it does and how it works, and heck I would contribute back a new solution myself if I understood how Apache contributions worked.
There is a better way to go. We use the log4net from NuGet in our .Net 4 solution, without any issues.
I believe log4net depends on the System.Web
DLL, which is not included in the .Net 4 client profile. If you must use the client profile, and log4net, you'll have to compile your own. This post may be a good start.
We just reference the log4net.dll in all our projects and that is no problem at all. There is no problem using a dll compiled for .NET 2.0 under .NET 4.
Support for the client profiles of .NET 3.5 and 4.0 was added in log4net v.1.2.11. The dependency on System.Web was removed.
精彩评论