我正在尝试在F#控制台应用程序中使用NLog,我已经成功地使用App.config中的配置部分进行了设置,但是无法使用独立的NLog.config文件。我的NLog.config文件位于应用程序路由下,就在App.config下面,并且内容如下:
<?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" throwExceptions="true">
<targets>
<target name="stdFile" xsi:type="File" fileName="c:/temp/compliant.log"/>
<target name="display" xsi:type="OutputDebugString"/>
</targets>
<rules>
<logger name="compliant.mail.*" minlevel="Debug" writeTo="stdFile,display" />
</rules>
</nlog>
我做错了什么?
同时,即使我已经包含了xsd文件,xml中的智能感知(intellisense)也无法工作。:(