The Web program in the NLog.dll, Nlog.config, nlog.xsd Copy to the console program, found that the run does not work, see the online sample tutorials, such as http://www.cnblogs.com/sorex/archive/ 2013/01/31/2887174.html, tried the next, more than a packages.config file, the contents are as follows:
<?xml version= "1.0" encoding= "Utf-8"?>
<packages>
<package id= "NLog" version= "4.1.0" targetframework= "Net45"/>
</packages>
But still does not work, the leader helps to look under, originally is Nlog.config, nlog.xsd these two configuration file run time not to copy the past, set as follows:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/72/E7/wKioL1Xv2VPzh4aAAAHfEcvxtUE645.jpg "title=" Untitled. jpg "alt=" wkiol1xv2vpzh4aaaahfecvxtue645.jpg "/>
It's working.
This article from "Love Work Love Life" blog, declined reprint!
Nlog does not work when running in the console program