在Assets文件夹中添加nlog.config
文件,在属性中将Build Action设置为AndroidAsset
var steam = Assets.Open("nlog.config");
var xmlReader = System.Xml.XmlReader.Create(steam);
NLog.LogManager.Configuration = new NLog.Config.XmlLoggingConfiguration(xmlReader, null);
在Assets文件夹中添加nlog.config
文件,在属性中将Build Action设置为AndroidAsset
var steam = Assets.Open("nlog.config");
var xmlReader = System.Xml.XmlReader.Create(steam);
NLog.LogManager.Configuration = new NLog.Config.XmlLoggingConfiguration(xmlReader, null);