Posted By

jimfred on 03/17/11


Tagged


Versions (?)

Get assembly name and version into a string.


 / Published in: C#
 

  1. using System.Reflection;
  2.  
  3. Assembly assembly = Assembly.GetExecutingAssembly();
  4. AssemblyName assemblyName = assembly.GetName();
  5.  
  6. string s = string.Format("{0}, {1}", assemblyName.Name, assemblyName.Version.ToString());

Report this snippet  

You need to login to post a comment.