Resharper errors in .xaml file

After the upgrade to 2024.2, we are getting errors in our .xaml files related to <KeyBinding>:

<KeyBinding Key="C" Modifiers="Ctrl" Command="{Binding Path=CopyToClipboardCommand}" />

If you open the file, it disappears. I have tried clearing the cache, creating a new folder with a fresh pull. They keep coming back. The weird thing is the enum is defined as “Control” but Intellisense gives you “Ctrl”. We had some of both and both were giving these errors.

0
3 comments

Hello JJ, thank you for your message. Do I understand correctly that this happens in the WPF project? Have you noticed after what actions the error appears? Also, it would be great if you could share a small sample solution so that we can reproduce the problem on our side. Thank you!

0

Yes, it is a WPF project, in our xaml files. Specifically, the Modifiers attribute above. I tried to create a simple project but it doesn't happen there. Our project/solution is quite large. It will come and go too. The errors will just show up. Then, sometimes I can just open the file and it will disappear. Sometimes not.

Can you at least tell me how to disable that single line?

<!-- ReSharper disable once Xaml.??? -->

I have tried various things like Xaml.UnableToResolveSymbol.

0

Hello JJ, thanks for your reply. Unfortunately, I didn't find a workaround yet. Does updating to the latest ReSharper 2024.3.2 help?
If not, please collect a log file for us. Thank you!

0

Please sign in to leave a comment.