Get assembly name and version into a string.


/ Published in: C#
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.