From 14160c39a245806070f525a1948a879e59efde36 Mon Sep 17 00:00:00 2001 From: Ryan Kistner Date: Thu, 11 Nov 2021 19:11:43 -0700 Subject: [PATCH] Include version and runtime information in debug log --- DepotDownloader/Program.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/DepotDownloader/Program.cs b/DepotDownloader/Program.cs index 748ee5dc..90b6d5fd 100644 --- a/DepotDownloader/Program.cs +++ b/DepotDownloader/Program.cs @@ -3,6 +3,8 @@ using System.Collections.Generic; using System.ComponentModel; using System.IO; using System.Linq; +using System.Reflection; +using System.Runtime.InteropServices; using System.Text.RegularExpressions; using System.Threading.Tasks; using SteamKit2; @@ -37,6 +39,9 @@ namespace DepotDownloader }); var httpEventListener = new HttpDiagnosticEventListener(); + + DebugLog.WriteLine("DepotDownloader", "Version: {0}", Assembly.GetExecutingAssembly().GetName().Version); + DebugLog.WriteLine("DepotDownloader", "Runtime: {0}", RuntimeInformation.FrameworkDescription); } var username = GetParameter(args, "-username") ?? GetParameter(args, "-user");