static void Main(string[] args) { var version = typeof(Program) .Assembly .GetCustomAttribute <AssemblyInformationalVersionAttribute>() .InformationalVersion; Console.WriteLine("Hello, world!"); Console.WriteLine($"I am version {version}"); Console.WriteLine($"My library is version {Class1.GetLibraryVersion()}"); }