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 charac
$ can be converted to string.format.
var CutOffTextFragment = deadLineTime.Deadline.Minute == 0 ? string.Format("{0:htt}",deadLineTime.Deadline) : string.Format("{0:h:mmtt}", deadLineTime.Deadline);