Skip to content

OmniSharp is not able to resolve correctly Uri class from System in Csharp script file csx. #1993

@hanpari

Description

@hanpari

Issue Description

OmniSharp is not able to resolve correctly Uri class from System in Csharp script file csx.
This happens in WSL: Ubuntu. The script is running correctly when triggered by dotnet-script
When under Windows VS Code, everything including OmniSharp works just fine. No issue encountered.

VS Code in Ubuntu WSL

VS Code in Windows 10

Steps to Reproduce

Expected Behavior

Actual Behavior

Logs

OmniSharp log

Post the output from Output-->OmniSharp log here

C# log

Post the output from Output-->C# here

Environment information

VSCode version: 1.50.1
C# Extension: 1.23.4

Mono Information OmniSharp using built-in mono
Dotnet Information .NET Core SDK (reflecting any global.json): Version: 3.1.403 Commit: 9e895200cd

Runtime Environment:
OS Name: ubuntu
OS Version: 20.04
OS Platform: Linux
RID: ubuntu.20.04-x64
Base Path: /usr/share/dotnet/sdk/3.1.403/

Host (useful for support):
Version: 3.1.9
Commit: 774fc3d6a9

.NET Core SDKs installed:
3.1.403 [/usr/share/dotnet/sdk]

.NET Core runtimes installed:
Microsoft.AspNetCore.App 3.1.9 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.9 [/usr/share/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
csharp ms-dotnettools 1.23.4
gitlens eamodio 10.2.2
LiveServer ritwickdey 5.6.1
ng-template Angular 0.1001.0
python ms-python 2020.9.114305
restructuredtext lextudio 129.0.0
vscode-conventional-commits vivaxy 1.12.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions