When I build, everything works. But, for some reason, Rider fails to detect what these are, and says cannot find symbols. Rider was working perfectly fine, but when I updated to 5.8 this broke, for whatever reason. Any help would be appreciated!
Also, I’m not sure if this matters, but I had to update my .Target files to:
I am not sure if this is connected to the same problems I have been having.
Again, similar symptoms; incorrect error/syntax highlighting, but build still seems to work ok.
For me, I mostly saw this in the .Build.cs files, where Rider didn’t know what a ‘string’ was anymore.
However I do have a C++ UCLASS error telling me it MUST inherit from only one base class (which is exactly what I am doing)
Everything compiled and ran fine though.
I traced back through my class hierarchy to the first base derived from an EPIC class - APlayerController. And it didn’t actually know what it was.
Once I popped a
#include "GameFramework/PlayerController.h"
in there, the error went away.
Sloppy coding on my part previously? Or modified includes in 5.8?
Don’t know, don’t care, really!
My BuildSettingsVersion and EngineIncludeOrderVersion were already set to ‘.Latest’, so I didn’t need to change anything there.
TLDR;
To resolve the CS highlighting issues, I installed .NET SDK 10.
UE5.8, apparently still uses 8.0, but ships with 10 included in the ThirdParty folder.
This can cause some things to use 10 from the folder, and others from whatever else you have/Rider configuration.
In Rider, if you open the settings (CTRL+ALT+S) and click on ‘Toolset and Build’
You can set the .NET CLI exe path, and the MSBuild Version.
In my case, after installing .NET SDK 10, I set both to the preset paths using my local user account:
.NET CLI = C:\Users\MyAccount.dotnet\dotnet.exe
MSBuild = C:\Users\MyAccount.dotnet\sdk\10.0.103\MSBuild.dll (18.0)