How can I get the last build date of a .NET-assembly?

Viewed 65

I put in my project:

System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString() & " - " &
File.GetLastWriteTime(System.Reflection.Assembly.GetExecutingAssembly().Location).ToShortDateString
        

But I don't understand exactly what this GetExecutingAssembly().Location is doing.
In my first machine, I Have 12/08/2022 (in my local machine i search the location its of my dll its : .dll in framework/temporary asp.net/..) In my second machine, I have 13/08/2022.

I don't understand the difference between my 2 machines. Why does the .dll has a different date?

I tried to find a solution : my local machine is in CLR 4.0 and my machines are 2.0. So I think my location is different between local and machines.

How could I have a common date despite my "clr" ?

0 Answers
Related