最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

.net - Jetbrains Rider - Cannot resolve Symbols .cshtml files - Stack Overflow

programmeradmin1浏览0评论

Rider Version: 2024.3.5 Windows 11

I tried restarting/rebuilding/invalidating caches. Navigating to symbols does not work in a specific solution neither autocomplete and suggestions, but if I change to other solution, the symbol starts to work correctly.

All the symbols are red and are marked with the warning "Cannot resolve symbol X".

It was working until some days ago.

How can I fix this?

I realised that the problem started after a I made a Git Patch from a branch of the project.

After that, this problem started.

But today, when I switched to the initial branch (from where I patched changes with git), everything went back to normal.

If I switch to any other branch, the problem returns.

If I open the same solution, in any branch with Visual Studio without resharper, everything works fine. I think that resharper is the problem here, but I don't know what to do. Also, I tried open the same solution in a VM, but the same problem still occurs

Print showing the errors

Rider Version: 2024.3.5 Windows 11

I tried restarting/rebuilding/invalidating caches. Navigating to symbols does not work in a specific solution neither autocomplete and suggestions, but if I change to other solution, the symbol starts to work correctly.

All the symbols are red and are marked with the warning "Cannot resolve symbol X".

It was working until some days ago.

How can I fix this?

I realised that the problem started after a I made a Git Patch from a branch of the project.

After that, this problem started.

But today, when I switched to the initial branch (from where I patched changes with git), everything went back to normal.

If I switch to any other branch, the problem returns.

If I open the same solution, in any branch with Visual Studio without resharper, everything works fine. I think that resharper is the problem here, but I don't know what to do. Also, I tried open the same solution in a VM, but the same problem still occurs

Print showing the errors

Share Improve this question edited Feb 8 at 11:05 Leonardo Oliveira asked Feb 7 at 23:48 Leonardo OliveiraLeonardo Oliveira 11 bronze badge 2
  • You can use git bisect to track down exactly which commit that introduces the problem. – hlovdal Commented Feb 8 at 10:34
  • Thanks! The commit that introduces the problem was a git patch from the branch that is working fine, After that, all the branches now have the problem, except the branch from where I created the patch. If I open the same solution, in any branch with Visual Studio without resharper, everything works fine. I think that resharper is the problem here, but I don't know what to do. Also, I tried open the same solution in a VM, but the same problem still occurs. – Leonardo Oliveira Commented Feb 8 at 11:03
Add a comment  | 

1 Answer 1

Reset to default 0

Would you mind trying the following steps to see if that helps:

  1. In Rider go to Settings | Build, Execution, Deployment and set MSBuild version to the one from Visual Studio installation;
  2. Close Rider and delete the .idea folder;
  3. Open solution in Rider and see if the issue still persists.
  4. If the issue persists, please [report a bug][1] to our issue tracker.

Have a nice day! [1]: https://youtrack.jetbrains.com/newIssue?project=RIDER

发布评论

评论列表(0)

  1. 暂无评论