开发者

Force AssemblyVersion("1.0.*") to observe DST when populating Revision?

It seems that, when using the following syntax in a C# project's AssemblyInfo.cs file, the Revision value doesn't observe Daylight Saving Time (it does use local time).

[assembly: AssemblyVersi开发者_运维技巧on("1.0.*")]

Is there a way that I can make .NET consider DST when converting the above into the timestamp?


Well, wrong question, you should have asked how to get it to use UTC. Because if you don't know where the build server is located then the timestamp you get doesn't mean anything anyway. If you do know where it is located then you know enough to reverse engineer the DST time too with the TimeZoneInfo class.


You cannot make .NET consider DST when converting the asterisks into the timestamp.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜