More discussion is seen here: https://stackoverflow.com/questions/1600962/displaying-the-build-date.
"this method works for .NET Core 1.0, but stopped working after .NET Core 1.1 - it gives random years in the 1900-2020 range."
Replace with new method