title: Adding References without Visual Studio
body: <p>I am trying to learn log4Net, however, I do not have Visual Studio installed in my PC (due to lack of Administrative Privileges). And so, I am trying out my code by writing them in good old Notepad of Windows XP. In this, if I want to add a reference to log4net.dll, how do I do it?</p>
  
  <p>Sorry for being .NET naive. I am just learning! </p>
  
  <p>For instance, this is the sample code that I am trying to execute. Tutorial is available <a href="http://www.beefycode.com/post/Log4Net-Tutorial-pt-1-Getting-Started.aspx" rel="noreferrer">here</a>. </p>
  
  <pre><code>using System;   
  namespace Tutorial1_GettingStarted   
  {   
   class Program   
   {   
       static void Main( string[] args )   
       {   
        log4net.Config.BasicConfigurator.Configure();   
        log4net.ILog log = log4net.LogManager.GetLogger( typeof( Program ) );              
  
          log.Debug( "Hello World!" );   
          log.Info( "I'm a simple log4net tutorial." );   
          log.Warn( "... better be careful ..." );   
          log.Error( "ruh-roh: an error occurred" );   
          log.Fatal( "OMG we're dooooooomed!" );   
  
          Console.ReadLine();  // so you can read the output   
      }   
    }   
  }  
  </code></pre>