Compile date and time

后端 未结 3 534
情歌与酒
情歌与酒 2020-12-14 19:21

Is there some clever way of getting the date and time of when the dll was built/compiled?

I’m using the assembly version numbering and reflection to retrieve and dis

3条回答
  •  情深已故
    2020-12-14 19:56

    You can get it by this way:

    File.GetLastWriteTime(Assembly.GetExecutingAssembly().Location);
    

    Returns DateTime object.

提交回复
热议问题