I got the compile error 'The type or namespace name 'log4net' could not be found in AssemblyInfo.cs'
What does this error mean and how do I start going about solving it?
This is the offending line in the AssemblyInfo.cs file
[assembly: log4net.Config.XmlConfigurator(ConfigFile = "Log4Net.config", Watch = true)]
I just download a new project and ran into this error on the compile. How does an entry like this even get added to this file?
Right click on your project in the solution explorer and click Add Reference
A window will pop up and you should be able to click on a browse tab.
navigate to wherever your log4net.dll
file is, and select that as the reference.
If you don't have a log4net.dll, you can download log4net from This page
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With