如何以编程方式将构建日期硬编码到程序集中
我想将构建日期硬编码到我的程序集中。
我可以轻松地手动完成此操作,但是有什么方法可以通过构建过程来实现吗?
I want to hard-code the date of build into my assembly.
I can easily do that manually but is there some way it can be achieved by the build process?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅http://social.msdn.microsoft.com/Forums/ar/tfsbuild/thread/7fdeabcc-2ef1-4c4f-9798-b69ebee0c3a3
一旦您能够获取时间戳,您可以将其放置在您的财产中,如下所示:
See http://social.msdn.microsoft.com/Forums/ar/tfsbuild/thread/7fdeabcc-2ef1-4c4f-9798-b69ebee0c3a3
Once you are able to get the timestamp, you can place it in your property like so: