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;
  3. Assembly assembly = Assembly.GetExecutingAssembly();
  4. AssemblyName assemblyName = assembly.GetName();
  6. string s = string.Format("{0}, {1}", assemblyName.Name, assemblyName.Version.ToString());

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.