Displaying the build date

前端 未结 25 2476
感动是毒
感动是毒 2020-11-22 11:36

I currently have an app displaying the build number in its title window. That\'s well and good except it means nothing to most of the users, who want to know if they have t

25条回答
  •  时光说笑
    2020-11-22 12:19

    I just added pre-build event command:

    powershell -Command Get-Date -Format 'yyyy-MM-ddTHH:mm:sszzz' > Resources\BuildDateTime.txt
    

    in the project properties to generate a resource file that is then easy to read from the code.

提交回复
热议问题