Assembly compilation data

  • Thread starter Thread starter Soren Staun Jorgensen
  • Start date Start date
S

Soren Staun Jorgensen

Hi,

Is it possible (at runtime) to get the DateTime of when the current assembly
was created - or better compiled ??

I could of course check the file creation date of the assembly, but this
wouldn't be accurate is the file was copied or moved from one computer to
another ??

Are this info present in the metadata of the assembly ??

Soren
 
Hi Soren,

It seems of that the create time(compile time) of the assembly does
not contains in the metadata(you can view it with the tool ildasm.exe)

So the file property "create time" will be the close to precision time data.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| From: "Soren Staun Jorgensen" <[email protected]>
| Subject: Assembly compilation data
| Date: Fri, 19 Sep 2003 08:56:28 +0200
| Lines: 14
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <Oi#[email protected]>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| NNTP-Posting-Host: 0x50c70a5c.adsl-fixed.tele.dk 80.199.10.92
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:185997
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| Hi,
|
| Is it possible (at runtime) to get the DateTime of when the current
assembly
| was created - or better compiled ??
|
| I could of course check the file creation date of the assembly, but this
| wouldn't be accurate is the file was copied or moved from one computer to
| another ??
|
| Are this info present in the metadata of the assembly ??
|
| Soren
|
|
|
 
Back
Top