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.
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.