is there any way to get to a unique build verion of an assembly at runtime? e.g. a version that is u

Discussion in 'Microsoft Dot NET Framework' started by Daniel, Dec 10, 2004.

  1. Daniel

    Daniel Guest

    is there any way to get to a unique build verion of an assembly at runtime?
    e.g. a version that is unique to the time that the assembly was built?
     
    Daniel, Dec 10, 2004
    #1
    1. Advertisements

  2. Daniel,

    I am not 100% sure but I remember something like if you put the asterisks in
    the AssemblyVersion attribute like this:

    [AssemblyVersion("1.0.*.*")]

    then the build number and the revision number will be generated
    automatically, and one of them (don't remember which one) will be generated
    in part based on the current time.

    --
    Sincerely,
    Dmitriy Lapshin [C# / .NET MVP]
    Bring the power of unit testing to the VS .NET IDE today!
    http://www.x-unity.net/teststudio.aspx

    "Daniel" <> wrote in message
    news:...
    > is there any way to get to a unique build verion of an assembly at
    > runtime?
    > e.g. a version that is unique to the time that the assembly was built?
    >
    >
     
    Dmitriy Lapshin [C# / .NET MVP], Dec 14, 2004
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. bw

    Assembly version from unloaded assembly

    bw, Aug 8, 2003, in forum: Microsoft Dot NET Framework
    Replies:
    5
    Views:
    437
  2. abc

    What is assembly?and Global Assembly cache....

    abc, Sep 17, 2003, in forum: Microsoft Dot NET Framework
    Replies:
    3
    Views:
    475
    Rami Reddy
    Sep 17, 2003
  3. MV

    Combing COM dll and C# assembly in sigle assembly

    MV, Dec 10, 2003, in forum: Microsoft Dot NET Framework
    Replies:
    2
    Views:
    575
    Hermit Dave
    Dec 11, 2003
  4. Dan
    Replies:
    4
    Views:
    573
  5. Scott James
    Replies:
    1
    Views:
    1,034
    Mattias Sjögren
    Mar 24, 2004
  6. Guest

    Why Assembly.Load get returns wrong assembly.

    Guest, Nov 3, 2006, in forum: Microsoft Dot NET Framework
    Replies:
    13
    Views:
    1,925
    Steven Cheng[MSFT]
    Feb 1, 2007
  7. Brad Wood
    Replies:
    1
    Views:
    523
    Steve B.
    Nov 30, 2006
  8. nenzax
    Replies:
    1
    Views:
    1,421
    Mr Gimper
    Feb 18, 2007
Loading...