Microsoft.Azure.Commands.Insights.Utilities.GetCurrentDllFileVersion C# (CSharp) Method

GetCurrentDllFileVersion() public static method

Gets the file version of the currently (executing) dll.
public static GetCurrentDllFileVersion ( ) : string
return string
        public static string GetCurrentDllFileVersion()
        {
            Assembly CurrentAssembly = Assembly.GetExecutingAssembly();
            System.Diagnostics.FileVersionInfo fileVersionInfo = System.Diagnostics.FileVersionInfo.GetVersionInfo(CurrentAssembly.Location);
            return fileVersionInfo.FileVersion;
        }