FS#60903 - [dotnet-sdk][dotnet-host] OmniSharp does not work
Attached to Project:
Community Packages
Opened by Mateusz Paluszkiewicz (TheAifam5) - Saturday, 24 November 2018, 16:05 GMT
Last edited by Maxime Gauduin (Alucryd) - Monday, 03 February 2020, 17:16 GMT
Opened by Mateusz Paluszkiewicz (TheAifam5) - Saturday, 24 November 2018, 16:05 GMT
Last edited by Maxime Gauduin (Alucryd) - Monday, 03 February 2020, 17:16 GMT
|
Details
Description:
OmniSharp could not find the 'Microsoft.NET.Sdk' thing. Please add this two files to the package: /etc/profile.d/dotnet.sh export DOTNET_ROOT=/opt/dotnet export MSBuildSDKsPath=$DOTNET_ROOT/sdk/$(${DOTNET_ROOT}/dotnet --version)/Sdks export PATH=${PATH}:${DOTNET_ROOT} /etc/profile.d/dotnet.csh setenv DOTNET_ROOT="/opt/dotnet" setenv MSBuildSDKsPath="${DOTNET_ROOT}/sdk/$(${DOTNET_ROOT}/dotnet --version)/Sdks" setenv PATH="${PATH}:${DOTNET_ROOT}" Reproduce: 1. Install vscode 2. Install C# extension to vscode 3. Create new project (shared library) using dotnet command 4. Open the project using vscode 5. Open "OmniSharp Log". |
This task depends upon
Closed by Maxime Gauduin (Alucryd)
Monday, 03 February 2020, 17:16 GMT
Reason for closing: Fixed
Additional comments about closing: 3.1.0.sdk100-2
Monday, 03 February 2020, 17:16 GMT
Reason for closing: Fixed
Additional comments about closing: 3.1.0.sdk100-2
When I remove /usr/bin/dotnet and make it symlink to /opt/dotnet/dotnet it seems works ok
See this issue for various workarounds and an ongoing discussion on the topic: https://github.com/OmniSharp/omnisharp-roslyn/issues/1610
See this comment for the particular workaround (and others) presented by Daniel Kozák: https://github.com/OmniSharp/omnisharp-roslyn/issues/1610#issuecomment-535657086