icsharpcode / NRefactory

NRefactory - Refactoring Your C# Code
684 stars 264 forks source link

Interpolated Strings: Compiler error when an interpolated string is too long #518

Open lta14 opened 8 years ago

lta14 commented 8 years ago

Console.WriteLine($"This should work but the compiler explodes if the string is too long!");

This leads to an IndexOutOfRangeException.

DavidKarlas commented 8 years ago

Interpolated Strings is C#6 feature. NRefactory doesn't support C# 6. You should probably consider switching to Roslyn.