After updating to 1.21.4, the "Go to Definition" feature is not working when the target is defined in a referenced assembly.
Downgrading to 1.21.3 solves this problem, and I was able to reproduce the issue and the downgrade fix on both Windows and Linux (Ubuntu 18.04). Additionally, I was able to reproduce it regardless of the target framework so it doesn't appear to be an issue with netcoreapp3.0 support.
A metadata file is generated based on the target assembly and opened in the editor window.
Error message saying that no definition could be found.
VSCode version: 1.38.1
C# Extension: 1.21.4
Mono Information
OmniSharp using global mono :6.4.0
Dotnet Information
.NET Core SDK (reflecting any global.json):
Version: 3.0.100
Commit: 04339c3a26
Runtime Environment:
OS Name: ubuntu
OS Version: 18.04
OS Platform: Linux
RID: ubuntu.18.04-x64
Base Path: /usr/share/dotnet/sdk/3.0.100/
Host (useful for support):
Version: 3.0.0
Commit: 95a0a61858
.NET Core SDKs installed:
3.0.100 [/usr/share/dotnet/sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.App 3.0.0 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.0.0 [/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-vscode|1.21.3|;
Thanks. this is a duplicate of https://github.com/OmniSharp/omnisharp-roslyn/issues/1624
It is already fixed here https://github.com/OmniSharp/omnisharp-roslyn/pull/1625
there is a pre-release OmniSharp that can be used as workaround.
"omnisharp.path": "1.34.5-beta.28"
Whoops, not sure how I didn't see that before this. Pre-release version is working though. Thanks!
+1
Most helpful comment
Thanks. this is a duplicate of https://github.com/OmniSharp/omnisharp-roslyn/issues/1624
It is already fixed here https://github.com/OmniSharp/omnisharp-roslyn/pull/1625
there is a pre-release OmniSharp that can be used as workaround.
"omnisharp.path": "1.34.5-beta.28"