resharper-structured-logging
resharper-structured-logging copied to clipboard
"Convert to compile-time constant message template" loses the track of parameters if a message contains single-quotes
The "Convert to compile-time constant message template" feature transforms these lines:
var aaa = 123;
var bbb = 456;
_logger.LogInformation($"A: '{aaa}', B: {bbb}");
_logger.LogInformation($"A: ''''''' {aaa}");
into these:
var aaa = 123;
var bbb = 456;
_logger.LogInformation("A: \'Aaaa}\', B:Bbbbb}", aaa, bbb);
_logger.LogInformation("A: \'\'\'\'\Aaa\' {Aaa}", aaa);
The gif: