Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. auto versioning?

auto versioning?

Scheduled Pinned Locked Moved C#
csharpquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    zecodela
    wrote on last edited by
    #1

    hi, any method to add versioning information automatically in .NET? or, any method to place the build date/time in the source file then i can read it back in the binary? thanks, jim

    L Z 2 Replies Last reply
    0
    • Z zecodela

      hi, any method to add versioning information automatically in .NET? or, any method to place the build date/time in the source file then i can read it back in the binary? thanks, jim

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      No, but you can easily read the PE filetimestamp using the following.

      DateTime compiletime = new DateTime(1970, 1,1).AddSeconds(BitConverter.ToUInt32(data, 136));

      where data is a byte[] representing the PE file (assembly). xacc-ide 0.0.15 now with C#, MSIL, C, XML, ASP.NET, Nemerle, MyXaml and HLSL coloring - Screenshots

      1 Reply Last reply
      0
      • Z zecodela

        hi, any method to add versioning information automatically in .NET? or, any method to place the build date/time in the source file then i can read it back in the binary? thanks, jim

        Z Offline
        Z Offline
        Zdeslav Vojkovic
        wrote on last edited by
        #3

        do you mean something like this: Versioning Controlled Build[^]

        Z 1 Reply Last reply
        0
        • Z Zdeslav Vojkovic

          do you mean something like this: Versioning Controlled Build[^]

          Z Offline
          Z Offline
          zecodela
          wrote on last edited by
          #4

          yes, this is great! thanks!!!

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups