I have VS 2003 and i completed the setup process however, i get 2 compiler errors.
" The type or namespace 'NLog' could not be found(are you missing a using directive or assembly reference?)"
" The type or namespace 'Logger' could not be found(are you missing a using directive or assembly reference?)
So far, i did the following steps. Which is probably pretty simple but
1.) I added the NLog.dll to the project.
2.) I have App.config file wiht the following listed in it.
<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="
http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance">
<targets>
<target name="file" xsi:type="File" fileName="${basedir}/log.txt" />
</targets>
<rules>
<logger name="*" minlevel="Debug" writeTo="file" />
</rules>
</nlog>
3.) I also have a copy "$(ProjectDir)App.config" "$(TargetDir)NLog.config" in the pre-build section.
4.)I have the follow code in the project. which is console app.
using NLog;
namespace DISPATCH_UTILITY_APP
{
/// <summary>
/// Summary description for Class1.
/// </summary>
class Class1
{
private static Logger logger = LogManager.GetCurrentClassLogger();
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(string[] args)
{
logger.Debug("Hello World!");