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?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. bw

    Assembly version from unloaded assembly

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

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

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

    Why Assembly.Load get returns wrong assembly.

    Guest, Nov 3, 2006, in forum: Microsoft Dot NET Framework
    Replies:
    13
    Views:
    1,263
    Steven Cheng[MSFT]
    Feb 1, 2007
  4. Brad Wood
    Replies:
    1
    Views:
    287
    Steve B.
    Nov 30, 2006
  5. nenzax
    Replies:
    1
    Views:
    945
    Mr Gimper
    Feb 18, 2007
Loading...

Share This Page