I'm building a set of assemblies that need to work on both Silverlight and WPF. Up till now, I've been using log4net to handle logging. It's not compatible with Silverlight though, so now I'm facing the prospect of ripping it out, which I don't want to do.
My question is this. Assuming I recreate the assemblies as Silverlight assemblies, I could wrap (using #ifdef or similar) the logging calls. However, is there any way to 'conditionally' reference the log4net dll? I'm reluctant to give up log4net, and would rather not have to have two versions of every project.
Any help would be appreciated.