Solvedomnisharp vscode Omnisharp.msbuild.projectmanager - failed to load project file - no IntelliSense
✔️Accepted Answer
I'm stuck on this issue with Ubuntu 19.04. I tried setting omnisharp.useGlobalMono: never (for those wondering where you do this, there is a setting in VS Code.) Did not help. I tried complete uninstalling and reinstalling Mono. That didn't help either.
What worked for me was installing VS code from this Microsoft site:
https://code.visualstudio.com/docs/setup/linux
Do not install from the snap store, that will just put you right back into this problem. Instead, scroll down to "Debian and Ubuntu based distributions", and install from the supplied .deb file.
Ok, this bugged me, so I kept going to figure out what the problem was for dotnet installed from the Ubuntu repositories. I found that making the following change corrected the problem.
In /usr/share/dotnet/sdk/2.2.301/Sdks/Microsoft.NET.Sdk/Sdk/Sdk.props:
Change
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" />
to
<Import Project="/usr/share/dotnet/sdk/2.2.301/Current/Microsoft.Common.props" />
The original produces "The imported project "/usr/lib/mono/xbuild/15.0/Microsoft.Common.props" was not found." which is true that file does not exist. But OmniSharp should not be trying to use that path, since I instructed it (via Settings) to UseGlobalMono=Never. Since I could not reopen this current issue, I created a new one to address this issue with OmniSharp
Other Answers:
@lonix1, keep in mind that many open source projects are maintained by nice teams that choose to make their code open source (and often free) instead closed source (and often paid) model and yet they do such awesome and valuable tools
Even though your frustration is understandable, statements such as "everything on linux is difficult or buggy" can be a little bit harsh on the project mantainers (and on the Linux project mantainers itself). Please, do not read this as if it was intended to be disrespectful or something, because it is really not
Best regards.
Issue Type: Bug
Steps
To recreate create a new console app and open vscode or vscode insiders and view the output window for errors.
System Info
Output window
VS Code version: Code - Insiders 1.34.0-insider (473af338e1bd9ad4d9853933da1cd9d5d9e07dc9, 2019-05-01T05:15:04.403Z)
OS version: Linux x64 5.0.0-13-generic
System Info
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: disabled_software
surface_synchronization: enabled_on
video_decode: unavailable_off
webgl: enabled
webgl2: enabled
Extensions (66)
(1 theme extensions excluded)