shm*_*111 5 f# xsd config nlog
我正在尝试在F#控制台应用程序中使用NLog,我已经设法使用App.config中的配置部分使其工作但是我无法使用独立的NLog.config文件使其工作.我的NLog.config文件位于app路径中,就在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>
Run Code Online (Sandbox Code Playgroud)
我究竟做错了什么?
此外,即使我已经包含xsd,intellisense也不适用于xml.:(