Why does it say "The name 'xxx' does not exist in the current context"?

Why is Rider telling me that "The name 'rawDefinitions' does not exist in the current context"?

If Rider really thought that rowDefinitions didn't exist, it would highlight it in red and show it as an error, but here there is no highlight.

 

0
5 comments

Hello Stefano,

Please try `File -> Invalidate caches -> Invalidate and restart`. Does it fix the issue?

0

Yes, it does fix the problem.

Any idea why it happened?

Thanks

0

Normally, Rider caches must not get corrupted, but sometimes it happens after switching VCS branches, or major refactorings. Did you do anything of this kind before the issue appeared?

0

No.

I just downloaded Rider and I am playing with it to decide whether to switch from Visual Studio.

I'm going to blame this on the "it was the first time I used it and I was opening the first solution that had been created with Visual Studio and something went wrong, but won't happen again" file.

So far I'm loving Rider as much as I love PyCharm (but I don't love C# as much as I love Python.)

Thanks

0

Thanks, Stefano. Feel free to reach out to me if you have any other issues or questions about Rider.

0

Please sign in to leave a comment.