I am having trouble adding log4net to my project. I added the reference and set everything up ok, but the build is failing. One of the error messages is complaining about the post-build failing, and the other error messages are saying
The type or namespace name 'log4net' could not be found (are you missing blah blah?)
But whenever I remove the post-build event, the project builds just fine. How can I fix my post-build event so I can reference log4net? Here is my current post-build (formatted to fit on page w/o scrolling):
copy /y "$(SolutionDir)3rdParty\log4net.dll" "$(TargetDir)"
c:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe /target:module
/r:"$(SolutionDir)2ndParty\PrintManager.dll"
/out:$(TargetDir)PrintModule.netmodule
$(ProjectDir)PrinterManaged.cs
My project Target Framework is already set to .NET Framework 4
.