C# Compiler Error:- “error CS0006: Metadata file ‘log4net.dll’ could not be found”

Background

Trying to compile a C# application, ran into a little error.

Error

Error Message – “error CS0006: Metadata file ‘log4net.dll’ could not be found”

Image

Textual

error CS0006: Metadata file ‘log4net.dll’ could not be found

 

Resolution

Avail log4net.dll

Outline

  1. Use Nuget
  2. Artifact

 

Nuget

Nuget is yet to be configured\tested on our development laptop and so will not consider that route at this time.

 

Artifact

Artifacts available here:-

  1. Apache – Logging
Files

Extract

Download log4net-2.0.8-bin-newkey.zip and extract the files.

 

Artifact Tree

Once downloaded and extracted here are the folders availed.

Platform
  1. mono
    • .Net Mono
  2. net
    • .Net Framework
      • Version Supported
        • 2.0
        • 3.5
        • 4.0
        • 4.5
  3. net-cp
    • .Net Client Profile
  4. netstandard
    • .Net Standard
      • .Net Core

 

References

  1. Apache
    • Logging
      • Log4Net

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s