Current filter:
                                You should refresh the page.
                                  • Running code cleanup with the Remove unused variable option results in the removal of required code.

                                    // Prior to Code cleanup class Class1 { public void test() { #if RELEASE const string WEBSITE = ""; #else const string WEBSITE = "http://localhost:2064/"; #endif } }
                                    // after code clean up class Class1 { public void test() { #else const string WEBSITE = "http://localhost:2064/"; #endif } }
                                • Mark Holmes 07.29.2017

                                  I thought I had 1.6 installed but it was 1.5. I don't see this problem anymore

                                • Alexander K (DevExpress) 07.31.2017

                                  Hi Mark,

                                  Thank you for pointing out this issue and providing a code sample. I have reproduced this behavior on the CodeRush for Roslyn 17.1.6 version. We will correct the Code Cleanup feature's work in this case.

                                  It is strange that the issue is not reproduced on your side after updating from 17.1.5 to 17.1.6. In this update, we have not made any changes that can be related to this issue. It seems that some others factors affected it.

                                1 Solution

                                Creation Date Importance Sort by