System.Diagnostics.Tracing Mono中的构建错误

时间:2016-07-06 17:10:13

标签: c# asp.net mono system.diagnostics

我正在尝试使用System.Diagnostics.Tracing dll在Mono(v4.4.1)中构建一个项目,但我不断遇到构建错误:

/usr/lib/mono/4.5/Microsoft.CSharp.targets (CoreCompile target) ->

Context/TplFrameworkListenerBase.cs(12,54): error CS0246: The type or namespace name `EventListener' could not be found. Are you missing an assembly reference?
Context/TplFrameworkListenerBase.cs(52,40): error CS0115: `FastTrack.Context.TplFrameworkListenerBase.OnEventSourceCreated(System.Diagnostics.Tracing.EventSource)' is marked as an override but no suitable method found to override
Context/TplFrameworkListenerBase.cs(114,55): error CS0246: The type or namespace name `EventWrittenEventArgs' could not be found. Are you missing an assembly reference?
Context/TplFrameworkListenerBase.cs(142,31): error CS0246: The type or namespace name `EventWrittenEventArgs' could not be found. Are you missing an assembly reference?
Context/TplFrameworkListenerBase.cs(147,69): error CS0246: The type or namespace name `EventWrittenEventArgs' could not be found. Are you missing an assembly reference?

我也试过添加nuget包以及手动添加对System.Diagnostics.Tracing.dll的引用,并在repo中包含dll。当我手动添加引用时,它说我有两个相同的引用包含在项目中,不会构建。有没有办法让这个工作或者这些属性是不是在最新版本的mono中实现的?

0 个答案:

没有答案