There is a similar question to this here but I believe that involves a different cause.
I moved a class from a newer project into an older project. Both were targeting .net 4.6 however after the move I received the following error on build.
Feature 'interpolated strings' is not available in C# 5. Please use language version 6 or greater.
I tried setting my project to build with C# 6 in the properties window with no change.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…