Skip to content

Instantly share code, notes, and snippets.

@guitarrapc
Created April 30, 2019 12:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guitarrapc/d2ae350f5bba17fd277b3713a3ca09fd to your computer and use it in GitHub Desktop.
Save guitarrapc/d2ae350f5bba17fd277b3713a3ca09fd to your computer and use it in GitHub Desktop.
Nerdbank.GitVersioning check
class Program
{
static void Main(string[] args)
{
Console.WriteLine($"{nameof(ThisAssembly.AssemblyConfiguration)}: {ThisAssembly.AssemblyConfiguration}");
Console.WriteLine($"{nameof(ThisAssembly.AssemblyFileVersion)}: {ThisAssembly.AssemblyFileVersion}");
Console.WriteLine($"{nameof(ThisAssembly.AssemblyInformationalVersion)}: {ThisAssembly.AssemblyInformationalVersion}");
Console.WriteLine($"{nameof(ThisAssembly.AssemblyName)}: {ThisAssembly.AssemblyName}");
Console.WriteLine($"{nameof(ThisAssembly.AssemblyTitle)}: {ThisAssembly.AssemblyTitle}");
Console.WriteLine($"{nameof(ThisAssembly.AssemblyVersion)}: {ThisAssembly.AssemblyVersion}");
Console.WriteLine($"{nameof(ThisAssembly.GitCommitId)}: {ThisAssembly.GitCommitId}");
Console.WriteLine($"{nameof(ThisAssembly.RootNamespace)}: {ThisAssembly.RootNamespace}");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment