Omnisharp.Msbuild.Projectmanager Failed to Load Project on Linux

OmniSharp.MSBuild.ProjectManager Failed to load project on Linux

I solved this by adding a omnisharp.json file with following content:

{
"MSBuild": {
"UseLegacySdkResolver": true
}
}

Source

OmniSharp.MSBuild.ProjectManager Attempted to update project that is not loaded:

To solve this I did several things. First of all, I downgrade OmniSharp version by installing their beta version. download the .vsix file for that release to my machine. Used the following steps to install the .vsix into Visual Studio Code.

  1. Open Visual Studio Code and select View->Extensions from the menu to display the Extensions pane
  2. By clicking the ... at the top-right corner of the Extensions pane and select "Install from VSIX..." on the menu.
  3. Located the .vsix the file I downloaded and Opened it
  4. Then restart vs code

But the problem still occurred, so then I downgraded the .Net core SDK v2.2.202 version to 2.1.202 and the problem is solved.

Updated: Had to face the same issue again after reinstalling VS Code, resolve by.

  1. In the visual studio code menu, go into File > Preferences > Settings. or Press Ctrl+++,

  2. In the Search Setting field, Type omnisharp.path

  3. Click on Edit in settings.json.

in there Add / Edit like this,

{
"omnisharp.path": "latest"
}

If your settings.json already had entries in it, put a comma behind the last one and add the line like this:

{
"workbench.colorTheme": "Solarized Light",
"omnisharp.path": "latest"
}

Finally, save the settings.json

You'll see a prompt: "OmniSharp configuration has changed. Would you like to relaunch the OmniSharp server with your changes?" Click the "Restart OmniSharp" button to reload it.

In the Output window, you can see updates while the latest version downloads

Fail OmniSharp MSBuild ProjectManager

In my case i have two dotnet core SDK. One form Visual studio 2019 and one from vs code. so first i uninstall the SDK from vs code and update my visual studio. This can resolve my issue.

Steps

  1. check single version of SDK install on your machine SDK or Visual
  2. studio update to latest version

VS Code / OmniSharp failing to load project; Can't find a package that is present

I resolved this issue by deleting the entire repository, recloning, and creating a new workspace file. The combination of those actions did the trick.

Omnisharp C# Not Working on Ubuntu 22.04 with Unity

Ok I have solved the problem.

what I did was to remove the Microsoft Package of dotnet (sdk & runtime) and installed the snap version.

And I also completely removed mono-complete and installed it again and
Voila!
It works now
Thanks

vs code Problems with C# extension, Some projects have trouble loading due to OmniSharp

Fix that by theses steps:

  1. Update Mono for Mac in: https://mono-project.com/download/
  2. VS Code > C# Enxtension (installed) > Extension setting > search for : omnisharp.useGlobalMono':'always' > set the option to Always


Related Topics



Leave a reply



Submit