I have a solution which builds fine when running through Visual Studio 2015 but when I run from the command line I run into the error
error CS1056: Unexpected character '$' on this line
var CutOffTextFragment = deadLineTime.Deadline.Minute == 0 ? $"{deadLineTime.Deadline:htt}" : $"{deadLineTime.Deadline:h:mmtt}"
deadLineTime.Deadline is a DateTime object, the code will return either XAM/PM or X:XXAM/PM
I think this is occuring becuase the build script is not using C#6. At present this script cant be changed to use c# 6
If this is the case, can anyone help me depreciate the code so it works with C# 5
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…