System.Diagnostics.Tracing in Mono

I am trying to create an application in MonoDevelop 4.2.3 using assemblies created using Visual Studio for .NET 4.5, but I get this warning:

/usr/lib/mono/4.5/Microsoft.Common.targets: Warning: link 'System.Diagnostics.Tracing, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a' is not allowed (ListenerBinTest)

And, of course, this error fails when I try to run the application:

System.IO.FileNotFoundException: Could not load file or assembly 'System.Diagnostics.Tracing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
  at System.Threading.Tasks.Dataflow.TransformBlock`2[System.Net.Sockets.Socket,vtortola.WebSockets.WebSocketListener+WebSocketNegotiationResult]..ctor (System.Func`2 transform, System.Threading.Tasks.Dataflow.ExecutionDataflowBlockOptions dataflowBlockOptions) [0x00000] in <filename unknown>:0
  at vtortola.WebSockets.WebSocketListener..ctor (System.Net.IPEndPoint endpoint, vtortola.WebSockets.WebSocketListenerOptions options) [0x00000] in <filename unknown>:0
  at vtortola.WebSockets.WebSocketListener..ctor (System.Net.IPEndPoint endpoint) [0x00000] in <filename unknown>:0
  at ListenerBinTest.MainClass.Main (System.String[] args) [0x00010] in /home/vtortola/ListenerBinTest/ListenerBinTest/Program.cs:12

To be honest, I do not use anything related to System.Diagnostics.Tracing, but apparently System.Threading.Tasks.Dataflowdoes.

This is my setup:

=== MonoDevelop ===
Version 4.2.3
Installation UUID: 2798c094-3f0b-42d7-afe4-2984107bea4e
Runtime:
    Mono 3.2.8 (tarball Mon Mar 10 19:20:49 UTC 2014) (64-bit)
    GTK+ 2.24.22 theme: oxygen-gtk
    GTK# (2.12.0.0)

=== Build Information ===
Git revision:
Build date: 2014-03-10 20:43:25+0000

=== Operating System ===
Linux
Linux linux-nt8h.site 3.11.10-7-desktop #1 SMP PREEMPT Mon Feb 3 09:41:24 UTC 2014 (750023e) x86_64 x86_64 x86_64 GNU/Linux

How can I solve this problem?

Thank.

+4
source share
1 answer

, Mono 3.2.8 System.Diagnostics.Tracing.dll .NET.

, System.Diagnostics.Tracing.dll . , - System.Diagnostics.Tracing.dll , PCL - .

Mono 3.4.0, System.Diagnostics.Tracing.dll. , :

/Library/Frameworks/Mono.framework/Versions/3.4.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/System.Diagnostics.Tracing.dll

Mac. , Linux, Mono 3.2.8. , 7, Mono 3.2.8. .dll Microsoft . , , Windows ZIP DLL .

, Xamarin Studio, . , , , .

System.Diagnostics.Tracing.dll , Microsoft DataFlow.

+4

Source: https://habr.com/ru/post/1540034/


All Articles