❔ Jetbrains Rider cant resolve any symbols

I tabbed out of Rider for 10mins to watch some youtube video, i tab back into rider and see this its even showing void and uint and things like that as Cant resolve symbol, but dotnet run works without any errors
29 Replies
Patrick
Patrick2y ago
Restart Rider?
TerrificTable55
did that like 5 times switched projects changed msbuild version restarted rider multiple times create a new project and move all my code to that new project nothing worked
Patrick
Patrick2y ago
I'm going to say you're making this actively worse, because it's probably something you've done
TerrificTable55
like i said in the post: i tabbed out of rider to watch a 10min youtube video, tabbed back in and found.... that
Angius
Angius2y ago
File -> Invalidate Caches
Patrick
Patrick2y ago
except for all the other steps, of changing MSBuild version, creating a new project and moving your code
TerrificTable55
i did that after i tabbed back in
Patrick
Patrick2y ago
sure..... and I'm saying you're making it worse
TerrificTable55
in an attempt to fix it, i searched on google, on jetbrains forum there were a lot of people saying: change msbuild version etc, i did that and it didnt work, i changed it back and it still doesnt work doesnt change anything
Playboi17
Playboi172y ago
Uninstall reinstall at this point
TerrificTable55
i just restared my pc and its still not working i reinstalled rider, and i still have the same problem
ChucklesTheBeard
Help -> Diagnostic Tools -> Show Log in Explorer see if there's anything useful in there (note that it's super verbose so it's gonna be full of stuff, including unhandled exceptions, even when everything is running fine)
TerrificTable55
im just searching for error in that file right?
ChucklesTheBeard
more like skimming it to find anything relevant
TerrificTable55
there doesnt seem to be anything too interesting there are a few exceptions and errors, but none of them seem to relate to the problem i have
ChucklesTheBeard
what happens when you try to build the project?
TerrificTable55
i normaly use dotnet run or dotnet build from my terminal, which work
TerrificTable55
and if i run dotnet run it works perfectly fine:
dotnet run
Something


dotnet run
Something


(i added a Console.WriteLine for "Something")
TerrificTable55
but in rider i cant select the project, and there is no "run button" where the Main method is
ChucklesTheBeard
next easy thing to try: reinstall .net sdk(s)
TerrificTable55
ok
TerrificTable55
i just opened another project by accident, and it works fine, no problems, nothing
ChucklesTheBeard
Interesting, you mentioned that didn't work before.
TerrificTable55
ye, before it didnt now it does
ChucklesTheBeard
new project -> just copy over the .cs files ¯\_(ツ)_/¯
TerrificTable55
ok, so for some reason, after creating another 2 projects and copy pasting the files, then opening the original one back up, it.... works...
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.