如何获得应用程序的编译日期 [英] how to get compile date of an application

查看:89
本文介绍了如何获得应用程序的编译日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好...

hi guys...

how can i get the compile date and time of an application and stored it to a variable?

推荐答案

最好的选择是运行一个将某些源代码更改为以下内容的程序:设置这些值,作为预构建任务.
Your best bet is to run a program that changes some source code to set those values, as a prebuild task.


您几乎没有机会获得它.
此类信息可能显然不存在.即使假定它嵌入在可执行文件中,它也将依赖于编译器.
:)
You have little chances to get it.
Such info may be plainly absent. Even supposing it is embedded in the executable, it woulb be compiler-dependent.
:)


我认为反射和元数据可以在这种情况下提供帮助.


只是尝试谷歌进行反思,我希望你能得到你的结果

:)
I think reflection and metadata can help in this context.


Just try to googling for reflection I hope u''ll get ur result

:)


这篇关于如何获得应用程序的编译日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆