Unity Version: 6000.2.6f2
Rider:2025.2.2.1
I met this problem when I try to use Rider instead of VS both on Mac and Windows. Then I try to remove the visual studio Editor in the package manager in Unity which works for me.