在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);

NLog在Xamarin Android中的配置

相关文章:

  • 2021-12-05
  • 2021-11-03
  • 2022-12-23
  • 2021-07-15
  • 2022-02-17
  • 2022-12-23
  • 2022-12-23
  • 2022-03-10
猜你喜欢
  • 2021-11-03
  • 2021-10-08
  • 2022-12-23
  • 2021-09-09
  • 2021-08-16
相关资源
相似解决方案