Current filter:
                                You should refresh the page.
                                  • On the code line

                                    [C#]
                                    var sw = new StreamWriter(Path.Combine(Application.StartupPath, "PE Error " + DateTime.Now.ToString("yyyy_MM_dd HH_mm_ss") + ".log"));

                                    CodeRush suggests a conversion to string interpolation but does not provide a preview in the light bulb. Also the refactoring is not executed. I tried several time. Sometimes I got the yellow band with the error "'UseStringFormatProvoder' encountered an error and has been disabled". See attached image.

                                    The expected output of the string expression is "PE Error 2018_04_22 19_20_09.log" with the current date time.

                                • Alex X (DevExpress) 04.23.2018

                                  Hi Olivier,

                                  Thank you for letting us know about this problem.

                                  I reproduced this behavior locally. You will be notified when we prepare a fix.

                                1 Solution

                                Creation Date Importance Sort by

                                Fixed:

                                • Olivier Jacot-Descombes 04.28.2018

                                  I have CodeRush 17.2.8 and the problem seems not to be resolved yet. I'm a bit confused about which version contains the fix. The box "Fixed" on this page says 17.2.8 and the box "Fixed in" says 17.2.9.

                                  More info: I am using C# latest minor version (i.e. 7.2). The project showing the error uses .NET Framework 3.5.

                                  The refactoring "Convert to string interpolation" does not work (i.e. does not show a preview and has no effect).
                                  The refactoring "Use string.Format" produces an exception.

                                • Artem L (DevExpress) 04.30.2018

                                  Hello Olivier,
                                  The "Fixed in" 17.2.9 box means that the fix for this issue will be included in the next 17.2.9 update. But you can Request a hotfix at any time. We have just published it and you are welcome to download and try it.

                                  Also, here is a link to the build with the fix here:
                                  DevExpress.CodeRush.Roslyn-17.2.8.18116.vsix