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.

OmniSharp fails to run with the new 1.19 update

See original GitHub issue

Issue Description

OmniSharp fails to run with the new 1.19 update.

Note I am running an older version of Windows 10 that does not support .NET Framework 4.7: image

Steps to Reproduce

  1. Open a C# file
  2. Check output

Expected Behavior

OmniSharp works and detects problems.

Actual Behavior

OmniSharp crashes on startup.

Logs

OmniSharp log

Starting OmniSharp server at 4/16/2019, 10:52:40 PM Target: c:\Users\mat1jaczyyy\Desktop\apollo-studio\Apollo.sln

OmniSharp server started. Path: C:\Users\mat1jaczyyy.vscode\extensions\ms-vscode.csharp-1.19.0.omnisharp\1.32.18\OmniSharp.exe PID: 764

System.IO.FileNotFoundException: Could not load file or assembly ‘netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’ or one of its dependencies. The system cannot find the file specified. File name: ‘netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’ at OmniSharp.Stdio.Driver.Program.<>c__DisplayClass0_1.<Main>b__1() at OmniSharp.HostHelpers.Start(Func`1 action)

WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

[ERROR] Error: OmniSharp server load timed out. Use the ‘omnisharp.projectLoadTimeout’ setting to override the default delay (one minute).

C# log

(empty)

Environment information

VSCode version: 1.33.1 C# Extension: 1.19.0

Dotnet Information .NET Core SDK (reflecting any global.json): Version: 2.2.105 Commit: 7cecb35b92

Runtime Environment: OS Name: Windows OS Version: 10.0.10240 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\2.2.105\

Host (useful for support): Version: 2.2.3 Commit: 6b8ad509b6

.NET Core SDKs installed: 2.1.202 [C:\Program Files\dotnet\sdk] 2.1.302 [C:\Program Files\dotnet\sdk] 2.1.502 [C:\Program Files\dotnet\sdk] 2.2.105 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed: Microsoft.AspNetCore.All 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.1.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.2.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.1.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.2.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.2.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

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

Visual Studio Code Extensions
Extension Author Version
cpptools ms-vscode 0.22.1
csharp ms-vscode 1.19.0
discord-vscode icrawl 3.4.0
python ms-python 2019.3.6558
vetur octref 0.18.1
vscode-xml-complete rogalmic 0.1.6
vsliveshare ms-vsliveshare 1.0.45

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
bruce31commented, May 25, 2019

It is ironic that in order to support .Net Core 3.0 it forces an upgrade of Full Framework when the selling point of 3.0 is that windows desktop apps can use the latest and greatest, independent of the version of full framework installed on the system.

0reactions
gregg-miskellycommented, May 17, 2019

@bruce31 OmniSharp does NOT run on .NET Framework on macOS/Linux. On macOS/Linux, it will run on Mono. On Windows it will run on the full .NET Framework.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The .NET Core SDK cannot be located. .NET Core debugging ...
Just simply close your VS Code app. It seems the error is produced because you are installing .NET Core SDK when your VS...
Read more >
[Solved] Problems with OmniSharp and Visual Studio Code
After the update, OmniSharp fails to validate the Unity project files and the editor refuses to initialize IntelliSense. Is this a bug or...
Read more >
Roslyn analyzers and code fixes in OmniSharp and VS Code
Apr 30, 2019 | omnisharp roslyn visual studio code ... share some background info, show you how to get it enabled and share...
Read more >
Updated Razor support in Visual Studio Code, now with ...
This latest release includes improved Razor diagnostics and support for tag helpers and Blazor apps. Get Started. To use this preview of Razor ......
Read more >
Bug listing with status RESOLVED with resolution OBSOLETE ...
... for mailman admins (new ebuild)" status:RESOLVED resolution:OBSOLETE severity:normal ... Bug:54727 - "gentoo-stats --update fails with error message" ...
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