Get the current version of the Assembly

The following code snippet return the Version number of currently executing assembly –

static string GetCurrentAssemblyVersionNumber() 
        { 
            Assembly currentAssembly = Assembly.GetExecutingAssembly(); 

            return currentAssembly.FullName.Split( new Char [] {','} )[1]; 
        }

Leave a comment

Design a site like this with WordPress.com
Get started