+1 vote

I have a VS project referencing Mail.dll.

When I do include that project in a setup project I get the following warning:
No se puede encontrar la dependencia 'LOG4NET' (Firma='669E0DDF0BB1AA2A' Versión='1.2.13.0') del ensamblado 'Mail.dll'...

Could this warning be avoided?

by

1 Answer

0 votes

Log4net is de-facto standard in .NET logging, however we can't force users to use it.

This is why Mail.dll uses "soft" reference to log4net - if the library is not found, it is not used, nor required.

This is a common practice while referencing logging tools.

You can avoid it by adding a reference to log4net.dll, but as I explained this is not necessary, you can safely ignore this warning.

by (297k points)
Could not load file or assembly 'log4net' error when running on Mono
...