无法加载文件或程序集 'Serilog.FullNetFx, Version=1.5.0.0'

Could not load file or assembly 'Serilog.FullNetFx, Version=1.5.0.0'

我有 .Net 4.5.2 应用程序,我已经安装了 Serilog 2.1.0Serilog.Sinks.MongoDB 2.0.19 我已经将接收器配置为

   var log = new Seri.LoggerConfiguration()
       .WriteTo.MongoDBCapped("mongodb://localhost:27017/test",collectionName: "logs")
       .CreateLogger();

但是我收到错误

Could not load file or assembly 'Serilog.FullNetFx, Version=1.5.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10' or one of its dependencies. The system cannot find the file specified.":"Serilog.FullNetFx, Version=1.5.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10

MongoDB 接收器仅在一天前更新以支持 Serilog 2.0。您需要 运行:

Update-Package Serilog.Sinks.MongoDB