dcsimg
Results 1 to 2 of 2

Thread: ClickOnce deployed application: how to get build date instead of .exe installed date?

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2012
    Posts
    49

    ClickOnce deployed application: how to get build date instead of .exe installed date?

    Hi folks I'm deploying a project using Clickonce and trying to get the date/time info for when I build the program in VS2010, and display this info when a client install the .exe, when I try to use

    Code:
    Dim buildDate As DateTime = New _
    FileInfo(Assembly.GetExecutingAssembly().Location).LastWriteTime
    this only gets me the time when the .exe is installed on the client's computer, not the build time(which is of course earlier than the installed time). Wondering whether there's a straightforward way to get a build date? Thx.

    sorry about opening a new thread. i mistakenly marked the other one as resolved when i thought I figured it out.

  2. #2

    Thread Starter
    Member
    Join Date
    Mar 2012
    Posts
    49

    Re: ClickOnce deployed application: how to get build date instead of .exe installed d

    Do you guys think this
    Dim buildDate as DateTime = new DateTime(2000,1,1).AddDays(
    System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.Build )
    will give the actual build date instead of Installed date??

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width