'System.Threading.Tasks.Dataflow' not found
See original GitHub issuedotnet --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.IEnumerable
1[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:
- Created 5 years ago
- Reactions:2
- Comments:5 (1 by maintainers)
Top GitHub Comments
So managed to get rid of errors by following steps: (but debugger still won’t stop at breakpoint 😦 )
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
to .bashrc add: export MSBuildSDKsPath=/opt/dotnet/sdk/2.2.102/Sdks export PATH=$MSBuildSDKsPath:$PATH
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 ??
@kentahikaru I could make debugging work using
ms-vscode.mono-debug
extension.My
.vscode/launch.json
:My
.vscode/tasks.json
: