C#-Win32: Getting the build date

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    C#-Win32: Getting the build date

    Is there a nice way of knowing when the project was compiled?
    I mean I know I could do a File.GetLastWri teTime() on it or something but that doesn't seem the best way.

    Does .NET track it's .exe build time anywhere?
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    I don't remember asking this, but it actually is something I would like to know.

    Comment

    • kenobewan
      Recognized Expert Specialist
      • Dec 2006
      • 4871

      #3
      Are you using VS2005? By default, the C# and Web profiles send only "minimal" MSBuild information to the output window. You can configure additional levels of output information by selecting the Tools->Options menu item. Then under Project and Solutions->Build and Run you can select the MSBuild project verbosity dropdown to be: "Quiet", "Minimal", "Normal", "Detailed", and "Diagnostic ".

      "Normal" gives me build times for projects, and is also explicit about when/where files outputs are updated and to where. This is very useful when you have pre/post actions and are trying to track down when they are firing and what impact they are having.

      Comment

      • Plater
        Recognized Expert Expert
        • Apr 2007
        • 7872

        #4
        I more ment in say a Help->About window I could put the date/time that it was compiled?

        Comment

        • Plater
          Recognized Expert Expert
          • Apr 2007
          • 7872

          #5
          I still have not found a solution to this.
          I have an embeded device that I would like the window's titlebar on my software to show the datetime that I compiled the software. (I could manually set it, but that's a pain and I might forget)

          Comment

          Working...