17 lines
504 B
C#
17 lines
504 B
C#
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<AssemblyInformationalVersionAttribute>();
|
|
return attr?.InformationalVersion;
|
|
}
|
|
}
|
|
}
|