WPF project, module "WindowsBase" should be referenced

I'm working on a WPF project and sometimes I get strange intellisense errors in Rider but the code itself is correct and perfectly compilable.
The error says

Module 'WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' should be referenced

I found out that when I close the solution, execute "git clean -xdf" in the repository and reopen it in Rider I can get rid of this issue, well at least for temporarily as they will appear some time in the future. Unfortunately I couldn't yet determine under what circumstances they reappear, it seems random.

Although it doesn't affect compilation and the code just works it bugs me that half of the solution turns red from time to time, can anyone help me on this issue?

Kind regards

1 comment
Comment actions Permalink

Hi Torben Jonas

First, what Rider version do you use? Please, try `File | Invalidate caches and restart` and check our latest EAP. Does this issue appear after switching branches?

If the problem comes again, I kindly ask you to collect some logs. You can attach it automatically to the new YouTrack issue with Help | Report a bug

We also appreciate it if you could attach your solution to the issue (or any sample solution where you can reproduce the issue).

Thank you in advance! 

1

Please sign in to leave a comment.