How to get build time in .NET?

Is it possible for a .NET assembly to know when it was built?

+3
source share
3 answers

Here's an interesting article explaining three ways to find the build date of an assembly:

Determining the build date in a difficult way

+7
source

Assembly metadata does not contain an assembly date. You could do a couple of things though:

  • Use the file system modification date to check when it was created.
  • Encode date in assembly version.
+2
source

http://autobuildversion.codeplex.com/

Assembly (File). .

- + .

Like January 1, 2011: 11001

+1
source

Source: https://habr.com/ru/post/1792027/


All Articles