C
C#16mo ago
mario12136

❔ Rider false positive: Cannot resolve symbol...

Hello, I am working in Rider on a WPF app and I keep getting Cannot resolve symbol for UI elements whose x:Name I have clearly defined. The code compiles without issue or warning but Rider is freaking out for some reason. The weird thing is I don't get this error for all controls, just the menu items for some reason. I rebuilt the solution and I even invalidated caches and restarted the IDE but I still get the same error. Any ideas for this?
7 Replies
Buddy
Buddy16mo ago
I would not recommend using Rider for WPF, as it does not have Hot Reload nor does it have a preview. Visual Studio is significantly better when it comes to WPF, MAUI, and so on.
Anton
Anton16mo ago
It does have a preview though
Buddy
Buddy16mo ago
Yesn't. It's only for .NET Framework.
Anton
Anton16mo ago
Never used WPF with .net framework But yesn't is true, it's pretty useless, but idk how good it is on vs either
Buddy
Buddy16mo ago
https://youtrack.jetbrains.com/issue/RIDER-58358 Seems like it does have support for .NET Core / .NET in 2021 But it is not that good either way, hot reload is significantly better to use as that allows you to design it while it is running, and even change backend code. Same goes for Visual Studio, designer / preview is just awful compared to hot reload.
mario12136
mario1213616mo ago
I use ReSharper so the issue remains.
Accord
Accord16mo 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.