using System; using System.Reflection; namespace Microsoft.DotNet.Cli.Utils { public class Product { public static readonly string LongName = ".NET Command Line Tools"; public static readonly string Version = GetProductVersion(); private static string GetProductVersion() { var attr = typeof(Product).GetTypeInfo().Assembly.GetCustomAttribute(); return attr?.InformationalVersion; } } }