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

前端 未结 3 2048
独厮守ぢ
独厮守ぢ 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:03

    $ 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);
    

提交回复
热议问题