how do I get date and time of compilation

  • Thread starter Thread starter gs
  • Start date Start date
should I use property? class level variable and use pre-processor?

I use the exe file's date:
FileDateTime(Application.ExecutablePath)
There may be something better in in fw 2.0.
 
oops. Application is not defined when I try to use
FileDateTime(Application.ExecutablePath)
in new()
what other context can I use it?
 
oops. Application is not defined when I try to use
FileDateTime(Application.ExecutablePath)
in new()
what other context can I use it?

It is probably your imports. The fully qualified names are:
Microsoft.VisualBasic.FileDateTime
System.Windows.Forms.Application.ExecutablePath
 
thank you

However I still get trouble with
Dim appPathFn As String

appPathFn = System.Windows.Forms.Application.ExecutablePath

Windows is not a member of System

I am using visual basic .net express 2005. don't know if that make any
difference. So far Google has not helped be yet
 
Back
Top