How do I get Version Information From The Assembly Info File?

tell me soon.

Recommended Answers

All 2 Replies

You shoud find information about the version in:

System.Windows.Forms.Application.ProductVersion.

If you need to phisically read the information from the AssemblyInfo file, you can use any standard text file procedure to read it and find the AssembyVersion.

Hope this helps

Private Function GetAppVersion() As String
        Dim PrgVer As String = ""

        Dim assem As Reflection.Assembly = Reflection.Assembly.GetExecutingAssembly()
        Dim assemName As Reflection.AssemblyName = assem.GetName()
        Dim ver As Version = assemName.Version
        PrgVer = _
            assemName.Name & " v." & ver.Major & "." & ver.Minor & "." & ver.Build

        Return PrgVer
    End Function
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.