How can i set the version number information in .net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • madankarmukta
    Contributor
    • Apr 2008
    • 308

    How can i set the version number information in .net

    HI all,
    Can anybody tell me hoe to set the version number information of the dll or exe in .net ?

    Thanks
  • DrBunchman
    Recognized Expert Contributor
    • Jan 2008
    • 979

    #2
    Go to the property page of your project, select the Application tab (the top one) and click on the Assembly Information button.

    In here you can change the file and assembly versions of your programs.

    You can access the version information in code with the following:
    Code:
    'Assembly Version
    Dim objAssembly As System.Reflection.Assembly = System.Reflection.Assembly.GetExecutingAssembly()
    Dim objAssemblyVersion As Version = objAssembly.GetName.Version
    
    'File Version
    Dim objFileVersion As System.Version
    Hope this helps,

    Dr B

    Comment

    Working...