我和Serilog失踪了什么?

编程入门 行业动态 更新时间:2024-10-23 18:26:48
本文介绍了我和Serilog失踪了什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

Serilog缺少什么namspace?

我可以在我的C#代码中使用LoggerConfiguration()和各种Serilog Sink但我的编译器抱怨规范我使用".WriteTo.File"。我很困惑因为我能够在另一个演示解决方案中使用此规范。我想知道是否需要添加某种程序集作为参考。我已经运行了"Install-Package Serilog.Sinks.File"。来自"包管理器控制台"但这似乎没有任何影响或改变。

我缺少什么指令或我需要什么汇编参考?

我试图通过在线文档解决这个问题,但我找不到结果。

解决方案

Serilog缺少什么namspace?

我可以在C#代码中使用LoggerConfiguration()和各种Serilog Sink但我的编译器抱怨我使用".WriteTo.File"的规范。我很困惑因为我能够在另一个演示解决方案中使用此规范。我想知道是否需要添加某种程序集作为参考。我已经运行了"Install-Package Serilog.Sinks.File"。来自"包管理器控制台"但这似乎没有任何影响或改变。

我缺少什么指令或我需要什么汇编参考?

我试图通过在线文档解决这个问题,但我找不到结果。

What namspace and I missing for Serilog?

I am able to use LoggerConfiguration() in my C# code with various Serilog Sinks but my compiler is complaining about the specification of my use of ".WriteTo.File". I am confused because I have ben able to use this specification in another demo solution. I wonder if there is some sort of Assembly I need to add as a reference. I have run "Install-Package Serilog.Sinks.File" from the "Package Manager Console" but that did not seem to have any effect or change.

What directive am I missing or what assembly reference do I need?

I tried to figure this out via online documentation but I can not find the result.

解决方案

What namspace and I missing for Serilog?

I am able to use LoggerConfiguration() in my C# code with various Serilog Sinks but my compiler is complaining about the specification of my use of ".WriteTo.File". I am confused because I have ben able to use this specification in another demo solution. I wonder if there is some sort of Assembly I need to add as a reference. I have run "Install-Package Serilog.Sinks.File" from the "Package Manager Console" but that did not seem to have any effect or change.

What directive am I missing or what assembly reference do I need?

I tried to figure this out via online documentation but I can not find the result.

更多推荐

我和Serilog失踪了什么?

本文发布于:2023-11-24 08:57:35,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1624557.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:我和   失踪了   Serilog

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!