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\1.37.17-net6.0\OmniSharp.dll does not exist.

See original GitHub issue

Environment data

名称: C# ID: ms-dotnettools.csharp 说明: C# for Visual Studio Code (powered by OmniSharp). 版本: 1.23.18 发布者: Microsoft VS Marketplace 链接: https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csharp

OmniSharp log

OmniSharp server started with .NET 6.0.100
.
    Path: c:\Users\heart\.vscode-insiders\extensions\ms-dotnettools.csharp-1.23.18\.omnisharp\1.37.17-net6.0\OmniSharp.dll
    PID: 4244

Could not execute because the specified command or file was not found.
Possible reasons for this include:
  * You misspelled a built-in dotnet command.
  * You intended to execute a .NET program, but dotnet-c:\Users\heart\.vscode-insiders\extensions\ms-dotnettools.csharp-1.23.18\.omnisharp\1.37.17-net6.0\OmniSharp.dll does not exist.
  * You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.

Steps to reproduce

"omnisharp.useModernNet": true

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
tmitchel2commented, May 1, 2022

Updating the extension does not seem to pull this file in. I had to uninstall and then reinstall the extension completely to make this work. I only now require “omnisharp.useModernNet”: true.

Edit: This worked for a short while before it didn’t…

1reaction
tarekahfcommented, Feb 9, 2022

I’ve been struggling with this error for hours. This step "omnisharp.path" to "latest" should have been added to the instructions of the C# Extension Installation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

vs code Problems with C# extension, Some projects have ...
The most common solution is to make sure Mono is installed on your machine (https://mono-project.com/download/) and that OmniSharp is started ...
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 >
OmniSharp - .NET and IntelliSense on any platform with your ...
OmniSharp is a set of tooling, editor integrations and libraries that together create an ecosystem that allows you to have a great programming...
Read more >
omnisharp-vscode - Discover .NET
Support for project.json and csproj projects on Windows, macOS and Linux. The C# extension is powered by OmniSharp. Requirements.
Read more >
VSCode OmniSharp crashing on startup from UnityEngine ...
My OmniSharp extension for VSCode is crashing on startup. ... Editor.dll mtoken: 0x0a000004 due to: Could not find method '.ctor' due to a ......
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