I have a very consistent and repeatable problem with Resharper losing
references and flagging all sorts of good code with red lines, when
switching between Debug and Release builds, and doing a build.
However, this only happens reliably in one project, and in one instance:
I have a WinForms project, and the file that the main form class is in, has
an additional class defined at the bottom. This additional class is
referred to throughout the Winform class.
When I build, then switch from Debug to Release and build again, it loses
all the references to the second class at the bottom of the file and
everything goes red.
It's not 100% repeatable, but it's in the 90% range. It doesn't always
happen, but it happens most of the time. The sequence of events to get it
to happen is "Build solution... switch from Debug to Release... Build
Sometimes, the red goes away when I switch to another application and then
switch back. Most of the time I close the solution and re-open it.
Even with all the red, the solution continues to build without error. All
the errors are related to references to the second class being unknown or
Has anyone else experienced anything like this?