Should consider building net45/net40 group if log4net NuGet is compatible/supports the same syntax for .NET 4.0 projects.