Project builds fine with Visual Studio but fails from the command line

前端 未结 3 2045
独厮守ぢ
独厮守ぢ 2020-12-12 05:05

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

3条回答
  •  执笔经年
    2020-12-12 06:09

    $"{deadLineTime.Deadline:htt}"
    

    is a syntax sugar for

    string.Format("{0:htt}", deadline.Deadline);
    

    same it goes for

    $"{deadLineTime.Deadline:h:mmtt}"
    

    as

    string.Format("{0:h:mmtt}", deadline.Deadline);
    

    try to replace them

提交回复
热议问题