Code Analysis wrongly reports many errors when building under different configurations

I am often finding that when I have built a solution in Debug mode, code analysis will show no errors...

THEN, if I subsequently build the same solution in Release mode, Code Analysis will go crazy -- suddenly throwing up dozens of errors, seemingly due to some inability to distinguish betwwen the Debug and Release assemblies.

3 comments

Hello Lee,

Do the errors disappear after Visual Studio finishes building or you need
to force solution-wide analysis to re-analyze files? Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I am often finding that when I have built a solution in Debug mode,
code analysis will show no errors...

THEN, if I subsequently build the same solution in Release mode, Code
Analysis will go crazy -- suddenly throwing up dozens of errors,
seemingly due to some inability to distinguish betwwen the Debug and
Release assemblies.

---
Original message URL:
http://devnet.jetbrains.net/message/5303892#5303892



0

No, the errors do not disappear after building, and even forcing a re-analysis doesn't work. Usually find I have to close and reopen Visual Studio to get R# to behave.

0

This seems to be the most readily available way to produce the errors I've described in http://devnet.jetbrains.net/message/5304032#5304032

0

Please sign in to leave a comment.