assembly

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]; }

Get Currently Executing Assembly's Directory

Sometimes it becomes necessary to find out the directory where the current executing assembly is running. Among several ways to do the task  , the following code–snippet can be employed  to return the