gpt4 book ai didi

c# - 是否有可能让 SLAB 与 Microsoft.Diagnostics.Tracing.EventSource 一起工作?

转载 作者:行者123 更新时间:2023-11-30 23:30:09 25 4
gpt4 key购买 nike

官方release notes说:

Improved compatibility with the EventSource nuget package

  • SLAB's source must be updated and rebuilt to work with the EventSource nuget package (which supports channels, but does not support sampling). The process is now fairly painless.
    • Added references to the EventSource nuget package to all projects
    • Changed System.Diagnostics.Tracing to Microsoft.Diagnostics.Tracing in all source files
    • Defined the EVENT_SOURCE_PACKAGE constant in the unit test project (to disable tests that cannot possibly work with the nuget version).

这有点神秘。有些东西似乎倒退了,因为我根本看不到任何对 Microsoft.Diagnostics.Tracing 的引用。在 Nuget 下载中。

或者子项目符号是您必须做的事情来构建它(所以它应该说添加、更改、定义而不是添加、更改、定义)?

嗯,那些说明(如果它们是说明)是不够的:

  • 有三个地方Microsoft.Diagnostics.Tracing已被引用,因此会给出重复警告
  • Microsoft.Practices.EnterpriseLibrary.SemanticLogging.Etw.Configuration.EventSourceSettings 之间有多个地方出现歧义。 (这是一个类)和Microsoft.Diagnostics.Tracing.EventSourceSettings (这是一个枚举)。

最佳答案

一些侦探工作和常识:

SLAB 的最后发布日期是2014 年7 月25 日,Microsoft.Diagnostics.Tracing.EventSource 的版本已满载。 ,包括一个可能无意中引入的 EventSourceSettings .

如果我安装并引用 1.0.26 版,说明有效。

现在只需要找出版本 1.1.28 中缺少的内容,以及我是否缺少它们。

关于c# - 是否有可能让 SLAB 与 Microsoft.Diagnostics.Tracing.EventSource 一起工作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35063813/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com