CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2002
    Posts
    40

    Assemble Version

    Dear Forum members,

    How can I get the version of a .Net assembly using C#.
    Is there a function which takes in a .net dll file name
    and returns me the version string ?

    Thanks in advance.

  2. #2
    Join Date
    Nov 2002
    Location
    Tatooine
    Posts
    155
    Try

    System.Reflection.Assembly.GetAssembly(typeof(anExposedType)).FullName

    The version should be the second comma delimeted field.

    Hope this helps.
    That which does not kill us, only makes us stronger.

    MCSD .NET

  3. #3
    Join Date
    Nov 2002
    Location
    Singapore
    Posts
    1,890
    good though.
    Paresh
    - Software Architect

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured