question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'System.Threading.Tasks.Dataflow' not found

See original GitHub issue

dotnet --info .NET Core SDK (reflecting any global.json): Version: 2.2.102 Commit: 96ff75a873

Runtime Environment: OS Name: arch OS Version: OS Platform: Linux RID: arch-x64 Base Path: /opt/dotnet/sdk/2.2.102/

Host (useful for support): Version: 2.2.1 Commit: 878dd11e62

.NET Core SDKs installed: 2.2.102 [/opt/dotnet/sdk]

.NET Core runtimes installed: Microsoft.NETCore.App 2.2.1 [/opt/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs: https://aka.ms/dotnet-download

VS Code version: Version: 1.30.2 Commit: 61122f88f0bf01e2ac16bdb9e1bc4571755f5bd8 Date: 2019-01-08T23:10:56.746Z Electron: 2.0.16 Chrome: 61.0.3163.100 Node.js: 8.9.3 V8: 6.1.534.41 OS: Linux x64 4.20.1-arch1-1-ARCH

C# Extension version: Name: C# Id: ms-vscode.csharp Description: C# for Visual Studio Code (powered by OmniSharp). Version: 1.17.1 Publisher: Microsoft VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-vscode.csharp

Steps to reproduce

Start “code-oss --unity-launch”

Expected behavior

Actual behavior

Starting OmniSharp server at 1/20/2019, 1:10:08 PM Target: /mnt/orage/Programming/AirTicketSearcher

OmniSharp server started with Mono 5.16.0. Path: /home/sandi/.vscode-oss/extensions/ms-vscode.csharp-1.17.1/.omnisharp/1.32.8/omnisharp/OmniSharp.exe PID: 14219

    Assembly loaded: OmniSharp.Cake
    Loaded OmniSharp.Cake, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
    Assembly loaded: OmniSharp.DotNet
    Loaded OmniSharp.DotNet, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
    Assembly loaded: OmniSharp.DotNetTest
    Loaded OmniSharp.DotNetTest, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
    Assembly loaded: OmniSharp.Host
    Loaded OmniSharp.Host, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
    Assembly loaded: OmniSharp.MSBuild
    Loaded OmniSharp.MSBuild, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
    Assembly loaded: OmniSharp.Plugins
    Loaded OmniSharp.Plugins, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
    Assembly loaded: OmniSharp.Roslyn
    Loaded OmniSharp.Roslyn, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
    Assembly loaded: OmniSharp.Roslyn.CSharp
    Loaded OmniSharp.Roslyn.CSharp, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
    Assembly loaded: OmniSharp.Script
    Loaded OmniSharp.Script, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
    Assembly loaded from path: /home/sandi/.vscode-oss/extensions/ms-vscode.csharp-1.17.1/.razor/OmniSharpPlugin/Microsoft.AspNetCore.Razor.OmniSharpPlugin.dll
    Starting OmniSharp on arch 0.0 (x64)
    DotNetPath set to dotnet
    Mono MSBuild could not be used because '/usr/lib/mono/msbuild/15.0/bin/Microsoft.Build.dll' does not exist.
    It looks like you have Mono 5.2.0 or greater installed but MSBuild could not be found.

Try installing MSBuild into Mono (e.g. ‘sudo apt-get install msbuild’) to enable better MSBuild support. info: OmniSharp.MSBuild.Discovery.MSBuildLocator Located 1 MSBuild instance(s) 1: StandAlone 15.0 - “/home/sandi/.vscode-oss/extensions/ms-vscode.csharp-1.17.1/.omnisharp/1.32.8/omnisharp/msbuild/15.0/Bin” trce: OmniSharp.Services.AssemblyLoader Assembly loaded from path: /home/sandi/.vscode-oss/extensions/ms-vscode.csharp-1.17.1/.omnisharp/1.32.8/omnisharp/msbuild/15.0/Bin/Microsoft.Build.Utilities.Core.dll dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator SUCCESS: Resolved to ‘/home/sandi/.vscode-oss/extensions/ms-vscode.csharp-1.17.1/.omnisharp/1.32.8/omnisharp/msbuild/15.0/Bin/Microsoft.Build.Utilities.Core.dll’ (name-only). trce: OmniSharp.Services.AssemblyLoader Assembly loaded from path: /home/sandi/.vscode-oss/extensions/ms-vscode.csharp-1.17.1/.omnisharp/1.32.8/omnisharp/msbuild/15.0/Bin/Microsoft.Build.Tasks.Core.dll dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator SUCCESS: Resolved to ‘/home/sandi/.vscode-oss/extensions/ms-vscode.csharp-1.17.1/.omnisharp/1.32.8/omnisharp/msbuild/15.0/Bin/Microsoft.Build.Tasks.Core.dll’ (name-only). trce: OmniSharp.Services.AssemblyLoader Assembly loaded from path: /home/sandi/.vscode-oss/extensions/ms-vscode.csharp-1.17.1/.omnisharp/1.32.8/omnisharp/msbuild/15.0/Bin/Microsoft.Build.Framework.dll dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator SUCCESS: Resolved to ‘/home/sandi/.vscode-oss/extensions/ms-vscode.csharp-1.17.1/.omnisharp/1.32.8/omnisharp/msbuild/15.0/Bin/Microsoft.Build.Framework.dll’ (name-only). trce: OmniSharp.Services.AssemblyLoader Assembly loaded from path: /home/sandi/.vscode-oss/extensions/ms-vscode.csharp-1.17.1/.omnisharp/1.32.8/omnisharp/msbuild/15.0/Bin/Microsoft.Build.dll dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator SUCCESS: Resolved to ‘/home/sandi/.vscode-oss/extensions/ms-vscode.csharp-1.17.1/.omnisharp/1.32.8/omnisharp/msbuild/15.0/Bin/Microsoft.Build.dll’ (name-only). info: OmniSharp.MSBuild.Discovery.MSBuildLocator MSBUILD_EXE_PATH environment variable set to ‘/home/sandi/.vscode-oss/extensions/ms-vscode.csharp-1.17.1/.omnisharp/1.32.8/omnisharp/msbuild/15.0/Bin/MSBuild.dll’ info: OmniSharp.MSBuild.Discovery.MSBuildLocator Registered MSBuild instance: StandAlone 15.0 - “/home/sandi/.vscode-oss/extensions/ms-vscode.csharp-1.17.1/.omnisharp/1.32.8/omnisharp/msbuild/15.0/Bin” MSBuildExtensionsPath = /usr/lib/mono/xbuild BypassFrameworkInstallChecks = true CscToolPath = /home/sandi/.vscode-oss/extensions/ms-vscode.csharp-1.17.1/.omnisharp/1.32.8/omnisharp/msbuild/15.0/Bin/Roslyn CscToolExe = csc.exe MSBuildToolsPath = /home/sandi/.vscode-oss/extensions/ms-vscode.csharp-1.17.1/.omnisharp/1.32.8/omnisharp/msbuild/15.0/Bin TargetFrameworkRootPath = /usr/lib/mono/xbuild-frameworks dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator Attempting to resolve ‘System.Threading.Tasks.Dataflow, Version=4.5.24.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator FAILURE: Could not locate ‘/home/sandi/.vscode-oss/extensions/ms-vscode.csharp-1.17.1/.omnisharp/1.32.8/omnisharp/msbuild/15.0/Bin/System.Threading.Tasks.Dataflow.dll’. dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator Attempting to resolve ‘System.Threading.Tasks.Dataflow, Version=4.5.24.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator FAILURE: Could not locate ‘/home/sandi/.vscode-oss/extensions/ms-vscode.csharp-1.17.1/.omnisharp/1.32.8/omnisharp/msbuild/15.0/Bin/System.Threading.Tasks.Dataflow.dll’. System.TypeLoadException: Could not load type of field ‘OmniSharp.MSBuild.ProjectManager:_queue’ (11) due to: Could not load file or assembly ‘System.Threading.Tasks.Dataflow, Version=4.5.24.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies. at (wrapper managed-to-native) System.RuntimeType.GetPropertiesByName_native(System.RuntimeType,intptr,System.Reflection.BindingFlags,bool) at System.RuntimeType.GetPropertiesByName (System.String name, System.Reflection.BindingFlags bindingAttr, System.Boolean icase, System.RuntimeType reflectedType) [0x0001b] in <eabff256da0b4c4db432852f93333375>:0 at System.RuntimeType.GetPropertyCandidates (System.String name, System.Reflection.BindingFlags bindingAttr, System.Type[] types, System.Boolean allowPrefixLookup) [0x00010] in <eabff256da0b4c4db432852f93333375>:0 at System.RuntimeType.GetProperties (System.Reflection.BindingFlags bindingAttr) [0x00000] in <eabff256da0b4c4db432852f93333375>:0 at System.Reflection.RuntimeReflectionExtensions.GetRuntimeProperties (System.Type type) [0x00006] in <eabff256da0b4c4db432852f93333375>:0 at System.Composition.TypedParts.Discovery.TypeInspector+<DiscoverPropertyExports>d__7.MoveNext () [0x00030] in <9aac21a4a3f24063b2b8b59143acddfc>:0 at System.Composition.TypedParts.Discovery.TypeInspector+<DiscoverExports>d__5.MoveNext () [0x000dc] in <9aac21a4a3f24063b2b8b59143acddfc>:0 at System.Composition.TypedParts.Discovery.TypeInspector.InspectTypeForPart (System.Reflection.TypeInfo type, System.Composition.TypedParts.Discovery.DiscoveredPart& part) [0x00061] in <9aac21a4a3f24063b2b8b59143acddfc>:0 at System.Composition.TypedParts.TypedPartExportDescriptorProvider…ctor (System.Collections.Generic.IEnumerable1[T] types, System.Composition.Convention.AttributedModelProvider attributeContext) [0x00037] in <9aac21a4a3f24063b2b8b59143acddfc>:0 at System.Composition.Hosting.ContainerConfiguration.CreateContainer () [0x00042] in <9aac21a4a3f24063b2b8b59143acddfc>:0 at OmniSharp.CompositionHostBuilder.Build () [0x001f6] in <ec3b9b744cc24b97b94be13e30b9e41f>:0 at OmniSharp.Stdio.Host..ctor (System.IO.TextReader input, OmniSharp.Stdio.Services.ISharedTextWriter writer, OmniSharp.IOmniSharpEnvironment environment, System.IServiceProvider serviceProvider, OmniSharp.CompositionHostBuilder compositionHostBuilder, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, System.Threading.CancellationTokenSource cancellationTokenSource) [0x00057] in <35cdcec6f502484d8825e1fc7493c665>:0 at OmniSharp.Stdio.Driver.Program+<>c__DisplayClass0_1.<Main>b__1 () [0x00138] in <22c463206460470eafd215b3bb7ab1cd>:0 at OmniSharp.CommandLineApplication+<>c__DisplayClass11_0.<OnExecute>b__0 () [0x0000b] in <ec3b9b744cc24b97b94be13e30b9e41f>:0 at McMaster.Extensions.CommandLineUtils.CommandLineApplication.Execute (System.String[] args) [0x00039] in <344a1e8cd6594b17b1e01f8df6ae8827>:0 at OmniSharp.CommandLineApplication.Execute (System.Collections.Generic.IEnumerable1[T] args) [0x00042] in <ec3b9b744cc24b97b94be13e30b9e41f>:0 at OmniSharp.Stdio.Driver.Program+<>c__DisplayClass0_0.<Main>b__0 () [0x00028] in <22c463206460470eafd215b3bb7ab1cd>:0 at OmniSharp.HostHelpers.Start (System.Func`1[TResult] action) [0x0001c] in <ec3b9b744cc24b97b94be13e30b9e41f>:0 [ERROR] Error: OmniSharp server load timed out. Use the ‘omnisharp.projectLoadTimeout’ setting to override the default delay (one minute).

It is searching for System.Threading.Tasks.Dataflow.dll in: /home/sandi/.vscode-oss/extensions/ms-vscode.csharp-1.17.1/.omnisharp/1.32.8/omnisharp/msbuild/15.0/Bin But the file is in: /home/sandi/.vscode-oss/extensions/ms-vscode.csharp-1.17.1/.omnisharp/1.32.8/omnisharp/

Where do i set up correct path?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
kentahikarucommented, Jan 23, 2019

So managed to get rid of errors by following steps: (but debugger still won’t stop at breakpoint 😦 )

  1. Copy all *.dll, *.pdb, *.config from ~/.vscode-oss/extensions/ms-vscode.csharp-1.17.1/.omnisharp/1.32.8/omnisharp to ~/.vscode-oss/extensions/ms-vscode.csharp-1.17.1/.omnisharp/1.32.8/omnisharp/msbuild/15.0/Bin

  2. to .bashrc add: export MSBuildSDKsPath=/opt/dotnet/sdk/2.2.102/Sdks export PATH=$MSBuildSDKsPath:$PATH

  3. copy /usr/lib/mono/xbuild/14.0/Microsoft.Common.props to /usr/lib/mono/xbuild/15.0/Microsoft.Common.props

How to make debugger work ??

0reactions
madprogcommented, Feb 9, 2019

@kentahikaru I could make debugging work using ms-vscode.mono-debug extension.

My .vscode/launch.json:

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "MyProject",
            "type": "mono",
            "request": "launch",
            "preLaunchTask": "build",
            "program": "${workspaceFolder}/bin/Debug/MyProject.exe",
        }
    ]
}

My .vscode/tasks.json:

{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "build",
            "type": "shell",
            "command": "msbuild",
            "args": [
                "/property:GenerateFullPaths=true",
                "/t:build"
            ],
            "group": "build",
            "presentation": {
                "reveal": "silent"
            },
            "problemMatcher": "$msCompile"
        }
    ]
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

System.Threading.Tasks.Dataflow Namespace - Microsoft Learn
Threading.Tasks.Dataflow namespace in Visual Studio, open your project, choose Manage NuGet Packages from the Project menu, and search online for the System.
Read more >
System.Threading.Tasks.Dataflow 7.0.0 - NuGet
TDF builds upon the APIs and scheduling infrastructure provided by the Task Parallel Library (TPL), and integrates with the language support for asynchrony ......
Read more >
System.Threading.Tasks.Dataflow not found #512 - GitHub
In the EWDK, the file can be found here: \Program Files\Microsoft Visual Studio 12.0\Common7\IDE\FromGAC\System.Threading.Tasks.Dataflow.dll.
Read more >
How To Quickly Fix System.Threading.Tasks.Dataflow.dll Not ...
In most cases, System.Threading.Tasks.Dataflow.dll DLL file problems are due to the file missing or being corrupted (by malware / virus) in the Microsoft ......
Read more >
MsBuild error MSB1025 - System.Threading.Tasks.Dataflow ...
MsBuild error MSB1025 - System.Threading.Tasks.Dataflow not found (following fake generation problems) · "C:\Windows\Microsoft.NET\Framework\v4.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found