C#6 string interpolation support

kosokovsky's Avatar


09 Aug, 2020 05:19 PM

String interpolation for ex: var s = $"{p.Name} is {p.Age} year{{s}} old", will crash the build. I tried to change build worker image to VS 2015... VS 2019 without any success. Please, let me know if there is any solution

  1. Support Staff 1 Posted by Feodor Fitsner on 10 Aug, 2020 07:20 PM

    Feodor Fitsner's Avatar

    Could be that .csproj has no C# version configured? Or how do you run the build - a simple repro would be helpful?

  2. 2 Posted by kosokovsky on 10 Aug, 2020 07:42 PM

    kosokovsky's Avatar

    That `.csproj` contains `<LangVersion>latest</LangVersion>` in each configuration.
    I noticed, that the issue occurs only with multi-line strings, that use @$. Single-line strings works well

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac