Return to Snippet

Revision: 43141
at March 17, 2011 10:03 by jimfred


Updated Code
using System.Reflection;

Assembly assembly = Assembly.GetExecutingAssembly();
AssemblyName assemblyName = assembly.GetName();

string s = string.Format("{0}, {1}", assemblyName.Name, assemblyName.Version.ToString());

Revision: 43140
at March 17, 2011 10:01 by jimfred


Updated Code
Assembly assembly = Assembly.GetExecutingAssembly();
AssemblyName assemblyName = assembly.GetName();

string s = string.Format("{0}, {1}", assemblyName.Name, assemblyName.Version.ToString());

Revision: 43139
at March 17, 2011 09:57 by jimfred


Initial Code
string s = string.Format("{0}, {1}", assemblyName.Name, assemblyName.Version.ToString());

Initial URL

                                

Initial Description

                                

Initial Title
Get assembly name and version into a string.

Initial Tags

                                

Initial Language
C#