Rider cannot resolve symbol, even though symbol clearly exists.

I am having a problem where Rider cannot resolve a symbol, even though the symbol clearly exists. If I Cmd-click into the class, the decompiled code shows that the function I'm trying to call is there.

Example:

string locale = ResourceHelper.GetString("myLocaleName");

Rider says that "GetString" cannot be resolved, though it exists in ResourceHelper. This is happening for all occurrences of GetString.

ResourceHelper is a custom class in a referenced assembly.

System info:

OS: Mac OS 13.4 (22F66)
Rider version: Build #RD-231.9011.39, built on May 17, 2023
MS Build path: /Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/msbuild/15.0/bin/MSBuild.dll
.NET CLI path: /usr/local/share/dotnet/dotnet
Mono path: /Library/Frameworks/Mono.framework/Versions/6.12.0/bin/mono-sgen64

 

0
2 comments

Ah, I just noticed that I was referencing the MS CLI rather than Mono. So I updated to use the Mono CLI executable, but that has just caused more "cannot resolve symbol" problems...

0

Hello,

ResourceHelper is a custom class in a referenced assembly.

Is this assembly a part of the same solution with the project where you're using the GetString() symbol? What is the type of the project (ASP.NET app, Unity, Xamarin etc)?

0

Please sign in to leave a comment.