First, I want to say "thank you" for log4net. Until recently, I did not realize how widely it is used in software that I use. Now that I've seen the source, I feel really silly about having poorly re-invented the wheel when I could have been using log4net all along.
Please pardon a naive observation and question. If this is treated in the archives, I either did not know how to search for it or did not recognize it when I saw it. I hope this is appropriate for this list. If not, a pointer to clue will be appreciated. Background: There is a problem with NAnt on .NET 4. Some people (not all) find that installing .NET 4 Framework breaks NAnt (up to and including the nightlies). This has been reported in the NAnt issue tracker more than once. The issue *appears* to be a a System.Security.SecurityException for FileIOPermission originating from a Demand stackwalk triggered by log4net. This a runtime problem. Just installing .NET 4 breaks NAnt builds of applications targeting any .NET version. Attempts to rebuild NAnt itself against .NET 4 also fail, again with a reference to log4net. Details have been reported in the NAnt tracker. Plan: So my goal is to see if building log4net specifically for .NET 4 will help. So far, I have built log4net for NET_3_5 simply by equating NET_3_5 to NET_2_0. I will begin testing this against a working NAnt-for-3.5 build process. Assuming that goes well, my plan is to install .NET 4 on my sandbox and build log4net specifically for .NET 4 and see if that allows me to finally build a NAnt which works on .NET 4 (and for .NET 4 targets). Request: If anyone has already done this or knows what I may find, I would appreciate hearing from you. I'm doing this in my "spare" time and do not claim any special expertise. In fact, I seem to be learning the hard way about the changes to Code Access Security model in .NET 4. Thanks Carlos
