CodeKicks.com
Focus on Microsoft Technologies - Tutorials, Articles, Code Samples.

Monday, September 04, 2006

Get Assembly Version in .NET

Public Function GetAssemblyVersion(ByVal Type As System.Type) As System.Version
            Try
                Dim asm As [Assembly]
                asm = Type.Assembly
                Return asm.GetName().Version
            Catch ex As Exception
               Return Nothing
            End Try
End Function

Post a Comment